honza / node-thumbnail

Thumbnail worker queue for node.js
http://honza.ca/node-thumbnail/
Other
103 stars 23 forks source link

Fixed invalid format error when ignore = true #35

Closed ziwar closed 6 years ago

ziwar commented 6 years ago

The code was failing when there is a file or folder that was not in supported format list even when ignore:true is set in the options. I think there is no need to return true in _.each loop because the code is already throwing an error if the format is not supported and ignore is set to false. Instead, if there was no error thrown, add only files that are supported.

honza commented 6 years ago

Excellent, thank you! :sparkles: