Skip to content

Commit

Permalink
refactor ugly return
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidGOrtega committed May 30, 2022
1 parent 6bbccbb commit 99c4222
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cml.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,10 @@ class CML {
}
}

if (!log.status) return;

log.level = log.success ? 'info' : 'error';
return log.status ? log : null;
return log;
}

async startRunner(opts = {}) {
Expand Down

1 comment on commit 99c4222

@github-actions

This comment was marked as outdated.

Please sign in to comment.