Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
knutkirkhorn committed Apr 3, 2019
1 parent 3e06ba1 commit d5d2e0a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ function checkAllFlags() {
if (cli.flags.p !== undefined) {
if (cli.flags.p == 'h') {
btcValue.getPercentageChangeLastHour().then(percentage => {
printss();
printPercentage(percentage + '%');
}).catch(() => {
exitError('Please check your internet connection');
Expand All @@ -198,7 +197,6 @@ function checkAllFlags() {
exitError('Please check your internet connection');
});
} else {
spinner.stop();
exitError('Invalid percentage input. Check `btc-value --help`.');
}
} else {
Expand Down Expand Up @@ -246,6 +244,7 @@ function checkAllFlags() {
}

autorefreshTimer = setTimeout(checkAllFlags, autorefresh * 1000);
spinner.start();
}
}

Expand Down

0 comments on commit d5d2e0a

Please sign in to comment.