mirror of
https://github.com/bower/bower.git
synced 2026-01-14 16:57:57 -05:00
Fix more JSHint issues.
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
"node": true,
|
||||
"devel": true,
|
||||
|
||||
"bitwise": true,
|
||||
"bitwise": false,
|
||||
"curly": false,
|
||||
"eqeqeq": true,
|
||||
"forin": false,
|
||||
|
||||
10
bin/bower
10
bin/bower
@@ -32,9 +32,13 @@ if (options.version) return console.log(bower.version);
|
||||
if (~cmdList.indexOf(command = options.argv.remain && options.argv.remain.shift())) bower.command = command;
|
||||
|
||||
bower.commands[bower.command || 'help'].line(input)
|
||||
.on('data', function (data) { data && console.log(data); })
|
||||
.on('end', function (data) { data && console.log(data); })
|
||||
.on('data', function (data) {
|
||||
if (data) console.log(data);
|
||||
})
|
||||
.on('end', function (data) {
|
||||
if (data) console.log(data);
|
||||
})
|
||||
.on('error', function (err) {
|
||||
if (options.verbose) throw err;
|
||||
else template('error', { message: err.message }).on('data', function (d) { console.log (d); });
|
||||
else template('error', { message: err.message }).on('data', function (d) { console.log(d); });
|
||||
});
|
||||
Reference in New Issue
Block a user