From 88e1b56a436d86f2af606b0717ba20e5a192ebbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20Unneb=C3=A4ck?= Date: Sun, 26 Apr 2020 11:01:22 +0100 Subject: [PATCH] Use object shorthand for properties --- index.js | 2 +- spec/spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 26262b7..2f79b01 100644 --- a/index.js +++ b/index.js @@ -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 || diff --git a/spec/spec.js b/spec/spec.js index 2c34291..9e6587f 100644 --- a/spec/spec.js +++ b/spec/spec.js @@ -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')