Skip to content

Commit

Permalink
fixup! Revert "fixup! linting"
Browse files Browse the repository at this point in the history
This reverts commit be9df7d.
  • Loading branch information
lukekarrys committed Nov 4, 2021
1 parent be9df7d commit ab8cd12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/utils/exit-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ process.on('exit', code => {
writeLogFile()
}
// In timing mode we always write the log file
if (npm.config.loaded && npm.config.get('timing') && !wroteLogFile)
if (npm.config.loaded && npm.config.get('timing') && !wroteLogFile) {
writeLogFile()

}
if (wroteLogFile) {
// just a line break
if (npm.log.levels[npm.log.level] <= npm.log.levels.error)
Expand Down
2 changes: 1 addition & 1 deletion test/lib/utils/exit-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ t.test('EUSAGE', (t) => {
exitHandler(Object.assign(
new Error('this is the usage message'),
{
code: 'EUSAGE',
code: 'EUSAGE'
}
))
t.match(outputs, [['this is the usage message']])
Expand Down

0 comments on commit ab8cd12

Please sign in to comment.