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:
@@ -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`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user