Skip to content

Commit

Permalink
watcher/cli: cleanup to be the 100line program it is
Browse files Browse the repository at this point in the history
  • Loading branch information
Will committed Nov 20, 2023
1 parent a97bcbe commit 2162641
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/wtr/watcher/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ struct Args {
: targis("-years") || targis("-y") ? 365 * 24 * 60 * 60 * 1e9
: 1e6;
auto td = strtod(st, (char**)&stend);
if (is_help
|| td == HUGE_VAL
|| td < 0)
if (is_help || td == HUGE_VAL || td < 0)
return nullopt;
else
return nanoseconds(llroundl(td * ttons));
Expand Down

0 comments on commit 2162641

Please sign in to comment.