Skip to content

Commit

Permalink
FIX Number.isNumber() is not a valid function
Browse files Browse the repository at this point in the history
  • Loading branch information
felipe authored and filetvignon committed Dec 4, 2020
1 parent 48178a5 commit 03272bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion start.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function start (opts) {
}
return
}
if (opts.expiry && !Number.isNumber(opts.expiry)) {
if (opts.expiry && (typeof opts.expiry !== 'number' || Number.isNaN(opts.expiry))) {
console.log(`"expiry" should be in unix date format`)
return
}
Expand Down

0 comments on commit 03272bb

Please sign in to comment.