Skip to content

Commit

Permalink
fix: incorrect nan check
Browse files Browse the repository at this point in the history
  • Loading branch information
kirinnee committed Aug 8, 2024
1 parent cfebedd commit 7827468
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cli/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,11 @@ class Cli {
if (data == null) this.err("Data is required, -d []");
if (interval == null)
this.err("Interval is required, -i <seconds>");
if (isNaN(i)) this.err("Interval must be a number");

const i = parseInt(interval);

if (isNaN(i)) this.err("Interval must be a number");

const all: Promise<void>[] = [];

for (const { date, from } of data) {
Expand Down

0 comments on commit 7827468

Please sign in to comment.