Skip to content

Commit b4302a3

Browse files
committed
node-gyp: fix lint
1 parent b3a147e commit b4302a3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/node-gyp.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ log.heading = 'gyp'
4040
*/
4141

4242
function gyp () {
43-
return new Gyp
43+
return new Gyp()
4444
}
4545

4646
function Gyp () {
@@ -130,7 +130,7 @@ proto.parseArgv = function parseOpts (argv) {
130130
var commands = this.todo = []
131131

132132
// create a copy of the argv array with aliases mapped
133-
var argv = this.argv.map(function (arg) {
133+
argv = this.argv.map(function (arg) {
134134
// is this an alias?
135135
if (arg in this.aliases) {
136136
arg = this.aliases[arg]
@@ -178,7 +178,7 @@ proto.parseArgv = function parseOpts (argv) {
178178
*/
179179

180180
proto.spawn = function spawn (command, args, opts) {
181-
opts || (opts = {})
181+
if (!opts) opts = {}
182182
if (!opts.silent && !opts.customFds) {
183183
opts.customFds = [ 0, 1, 2 ]
184184
}
@@ -193,7 +193,7 @@ proto.spawn = function spawn (command, args, opts) {
193193
*/
194194

195195
proto.usage = function usage () {
196-
var usage = [
196+
var str = [
197197
''
198198
, ' Usage: node-gyp <command> [options]'
199199
, ''
@@ -208,7 +208,7 @@ proto.usage = function usage () {
208208
, 'node-gyp@' + this.version + ' ' + path.resolve(__dirname, '..')
209209
, 'node@' + process.versions.node
210210
].join('\n')
211-
return usage
211+
return str
212212
}
213213

214214
/**

0 commit comments

Comments
 (0)