Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeWitchBella committed Aug 7, 2020
1 parent 57c4ae6 commit 1b61961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function checkOptions({
if (!(key in merged)) throw new Error(`Missing option ${key}`)
if (config[key] === 'string[]') {
// is not array or something is string
if (!Array.isArray(value) || value.some(v => typeof v !== 'string')) {
if (!Array.isArray(value) || value.some((v) => typeof v !== 'string')) {
throw new Error(`Value of option ${key} should be array of strings`)
}
} else if (config[key] === 'string') {
Expand Down

0 comments on commit 1b61961

Please sign in to comment.