Fix more JSHint issues.

This commit is contained in:
André Cruz
2012-11-20 20:50:48 +00:00
parent f925fb9adb
commit faa3cf4cb8
2 changed files with 8 additions and 4 deletions

View File

@@ -13,7 +13,7 @@
"node": true,
"devel": true,
"bitwise": true,
"bitwise": false,
"curly": false,
"eqeqeq": true,
"forin": false,

View File

@@ -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); });
});