diff options
| author | Christophe Porteneuve <[email protected]> | 2013-11-08 19:31:19 +0100 |
|---|---|---|
| committer | Christophe Porteneuve <[email protected]> | 2013-11-08 19:35:30 +0100 |
| commit | a49eaa7f533bb7c3338d7864e3d118d43ede861e (patch) | |
| tree | 88da9a5a295d4dcd7bb0f0a30c27da48036639fb /lib/handleInput.js | |
| parent | 36c62aff7424b12ca9e84370afc65ecfbe73e632 (diff) | |
| download | node-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.js | 6 |
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; |
