Skip to content

Commit

Permalink
files.forEach bug - Fixes #16
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewgonzalez committed Nov 16, 2017
1 parent 98f4704 commit f403907
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/process-fonts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { FontCollection } from '../lib/font-collection'

function processFonts (files: Array<any>) {
if (!files) return
files = [].concat(files)
files.forEach(file => {
new FontCollection(file).export()
})
Expand Down

0 comments on commit f403907

Please sign in to comment.