Skip to content
Permalink
Browse files

fix(cli): fix alarm cli when no alarms are returned

  • Loading branch information...
RangerRick committed Mar 26, 2019
1 parent 5e9cf88 commit 75c6a9aac1d02c757b9df5646ed23e3d9402eda4
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/CLI.ts
@@ -237,6 +237,12 @@ const CLI = () => {
}

return dao.find(filter).then((alarms) => {
if (!alarms || alarms.length === 0) {
console.log('No alarms found.');
console.log('');
return;
}

const format = Object.assign({}, tableFormat);
const formatted = formatAlarms(alarms);

0 comments on commit 75c6a9a

Please sign in to comment.
You can’t perform that action at this time.