Skip to content

Commit

Permalink
Use !Array.isArray since it makes more sense.
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Nov 7, 2019
1 parent cb088a5 commit 4ad6fdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports.getResource = function(file, options = {}) {
...options
};

if (typeof opts.base === 'string') {
if (!Array.isArray(opts.base)) {
opts.base = [opts.base];
}

Expand Down

0 comments on commit 4ad6fdd

Please sign in to comment.