Skip to content

Commit

Permalink
fix: Use object shorthand for properties
Browse files Browse the repository at this point in the history
Use object shorthand for properties
  • Loading branch information
bahmutov committed Oct 18, 2021
2 parents 1329857 + 88e1b56 commit b6447f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -107,7 +107,7 @@ function simpleBinHelp (options, cliArguments) {
}

if (pkg && pkg.name && pkg.version) {
updateNotifier({ pkg: pkg }).notify()
updateNotifier({ pkg }).notify()
}

var minArguments = options.minArguments ||
Expand Down
2 changes: 1 addition & 1 deletion spec/spec.js
Expand Up @@ -33,7 +33,7 @@ describe('simple bin help', function () {
var options = {
minArguments: 1,
noExit: true,
onFail: onFail
onFail
}
var cliArguments = []
la(!simpleHelp(options, cliArguments), 'not enough arguments')
Expand Down

0 comments on commit b6447f5

Please sign in to comment.