Skip to content

Commit b6447f5

Browse files
authored
fix: Use object shorthand for properties
Use object shorthand for properties
2 parents 1329857 + 88e1b56 commit b6447f5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function simpleBinHelp (options, cliArguments) {
107107
}
108108

109109
if (pkg && pkg.name && pkg.version) {
110-
updateNotifier({ pkg: pkg }).notify()
110+
updateNotifier({ pkg }).notify()
111111
}
112112

113113
var minArguments = options.minArguments ||

spec/spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe('simple bin help', function () {
3333
var options = {
3434
minArguments: 1,
3535
noExit: true,
36-
onFail: onFail
36+
onFail
3737
}
3838
var cliArguments = []
3939
la(!simpleHelp(options, cliArguments), 'not enough arguments')

0 commit comments

Comments
 (0)