Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
PR-URL: #1551
Credit: @isaacs
Close: #1551
Reviewed-by: @ruyadorno
  • Loading branch information
isaacs authored and ruyadorno committed Jul 29, 2020
1 parent 262243b commit bd0d94b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/run-script.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const run = require('@npmcli/run-script')
const npm = require('./npm.js')
const readJson = require('read-package-json-fast')
const { resolve, join } = require('path')
const { resolve } = require('path')
const output = require('./utils/output.js')
const log = require('npmlog')
const usageUtil = require('./utils/usage')
Expand Down
1 change: 1 addition & 0 deletions lib/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const testCmd = require('./utils/lifecycle-cmd.js')('test')
const { completion, usage } = testCmd
const cmd = (args, cb) => testCmd(args, er => {
if (er && er.code === 'ELIFECYCLE') {
/* eslint-disable standard/no-callback-literal */
cb('Test failed. See above for more details.')
} else {
cb(er)
Expand Down

0 comments on commit bd0d94b

Please sign in to comment.