From faa3cf4cb82a98aed9afa23726c268ec4ebcc391 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Cruz?= Date: Tue, 20 Nov 2012 20:50:48 +0000 Subject: [PATCH] Fix more JSHint issues. --- .jshintrc | 2 +- bin/bower | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.jshintrc b/.jshintrc index 74ecb815..2d1464ec 100644 --- a/.jshintrc +++ b/.jshintrc @@ -13,7 +13,7 @@ "node": true, "devel": true, - "bitwise": true, + "bitwise": false, "curly": false, "eqeqeq": true, "forin": false, diff --git a/bin/bower b/bin/bower index d12ff97e..c12dffae 100755 --- a/bin/bower +++ b/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); }); }); \ No newline at end of file