Skip to content

Commit baadcec

Browse files
committed
jshint fixes for yargs.js.
1 parent 31be93e commit baadcec

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/util/yargs.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,17 @@ function listTasks() {
4646
}
4747

4848
/**
49-
* Check that any additional arugments are only the subcommand
49+
* Check that any additional arguments are only the sub command
5050
* @param {Object} argv parsed argv hash
5151
* @param {Array} options options and their aliases
5252
* @throws Error where task is improperly specified
5353
*/
54-
function subCommandCheck(argv, options) {
54+
function subCommandCheck(argv) {
5555
var bareArguments = argv._;
5656
if (bareArguments) {
5757
if (bareArguments.length > 1) {
5858
throw new Error('Too many tasks specified: '+ bareArguments.slice(1));
59-
} else if ((bareArguments.length == 1) && listTasks().indexOf(bareArguments[0]) < 0) {
59+
} else if ((bareArguments.length === 1) && listTasks().indexOf(bareArguments[0]) < 0) {
6060
throw new Error('Unknown task: ' + bareArguments[0]);
6161
}
6262
}
@@ -102,7 +102,7 @@ function singleDashCheck(argv, options) {
102102

103103
// error message
104104
if (pending.length) {
105-
throw new Error('Superfluous arguments: ' + pending.join(', '))
105+
throw new Error('Superfluous arguments: ' + pending.join(', '));
106106
}
107107
}
108108

@@ -131,7 +131,7 @@ function createCheck() {
131131
commit: function() {
132132
return getCheck(elements); // lock in the current instance state
133133
}
134-
}
134+
};
135135

136136
// the implementation of the yargs check method
137137
function getCheck(elements) {

0 commit comments

Comments
 (0)