Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
Use Array.isArray to check for Array.
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Sep 30, 2019
1 parent 38bb3dd commit 8272352
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const fetchResource = require('./fetchResource');
* @return {Promise}
*/
const generate = async(options) => {
if (typeof options.algorithms === 'string') {
if (!Array.isArray(options.algorithms)) {
options.algorithms = [options.algorithms];
}

Expand Down

0 comments on commit 8272352

Please sign in to comment.