Skip to content

Commit

Permalink
🐛 Minor bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
i1u5 committed Aug 12, 2020
1 parent ff73d9f commit ca23ae2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 0 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,5 @@
}
}
],
"reportUnusedDisableDirectives": true,
"noInlineConfig": true,
"plugins": ["@typescript-eslint"]
}
11 changes: 6 additions & 5 deletions presenceUpdater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,11 +264,12 @@ const readFile = (path: string): string =>
return null;
}

appCode === 1 && metadata.service && metadata.service.length > 0
? console.log(`❌ ${metadata.service}`)
: console.log(`❌ ${path}`);

if (exitCode === 0 && appCode === 1) exitCode = 1;
if (appCode === 1) {
if (exitCode === 0) exitCode = 1;
metadata.service && metadata.service.length > 0
? console.log(`❌ ${metadata.service}`)
: console.log(`❌ ${path}`);
}

return resJson;
})
Expand Down

0 comments on commit ca23ae2

Please sign in to comment.