aboutsummaryrefslogtreecommitdiff
path: root/lib/handleInput.js
diff options
context:
space:
mode:
authorChristophe Porteneuve <[email protected]>2013-11-08 19:31:19 +0100
committerChristophe Porteneuve <[email protected]>2013-11-08 19:35:30 +0100
commita49eaa7f533bb7c3338d7864e3d118d43ede861e (patch)
tree88da9a5a295d4dcd7bb0f0a30c27da48036639fb /lib/handleInput.js
parent36c62aff7424b12ca9e84370afc65ecfbe73e632 (diff)
downloadnode-coveralls-a49eaa7f533bb7c3338d7864e3d118d43ede861e.tar.xz
node-coveralls-a49eaa7f533bb7c3338d7864e3d118d43ede861e.zip
Fix step 3: code cleanup + faster/nimbler use of Git to obtain data (rev-parse and cat-file instead of multiple log calls)
Diffstat (limited to 'lib/handleInput.js')
-rw-r--r--lib/handleInput.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/handleInput.js b/lib/handleInput.js
index 1435c1c..807e31d 100644
--- a/lib/handleInput.js
+++ b/lib/handleInput.js
@@ -1,9 +1,10 @@
var index = require('../index');
var logger = require('./logger')();
-var handleInput = function(input){
+function handleInput(input) {
logger.debug(input);
var options = index.getOptions(function(err, options){
+
if (err){
logger.error("error from getOptions");
throw err;
@@ -28,7 +29,6 @@ var handleInput = function(input){
});
});
});
-
-};
+}
module.exports = handleInput;