1
0
mirror of https://github.com/snobu/destreamer.git synced 2026-02-19 12:59:43 +00:00

Fix curly braces to comply with eslint rules (#141)

This commit is contained in:
Adrian Calinescu
2020-05-19 18:41:28 +03:00
committed by GitHub
parent 6132f895f3
commit fa310661e9
6 changed files with 103 additions and 64 deletions

View File

@@ -12,8 +12,9 @@ import colors from 'colors';
export function setProcessEvents() {
// set exit event first so that we can always print cute errors
process.on('exit', (code) => {
if (code == 0)
if (code == 0) {
return;
}
const msg = code in Error ? `\n\n${Error[code]} \n` : `\n\nUnknown error: exit code ${code} \n`;