aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGabe Hayes <[email protected]>2013-07-27 11:56:25 -0700
committerGabe Hayes <[email protected]>2013-07-27 11:56:25 -0700
commit598554ce00cc0096de3368b522f97b4b3024ca54 (patch)
tree5a7c383b612ba3cba6c927ce6b7dde86695b02fd /lib
parent1f21d54dfb5e56c96b4592a259014bf49a6f021e (diff)
downloadnode-coveralls-598554ce00cc0096de3368b522f97b4b3024ca54.tar.xz
node-coveralls-598554ce00cc0096de3368b522f97b4b3024ca54.zip
collapsed logical block
Diffstat (limited to 'lib')
-rw-r--r--lib/fetchGitData.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/fetchGitData.js b/lib/fetchGitData.js
index a5a8eb8..d79a3db 100644
--- a/lib/fetchGitData.js
+++ b/lib/fetchGitData.js
@@ -1,4 +1,5 @@
var exec = require("exec-sync");
+var logger = require('./logger')();
var fetchGitData = function(git) {
@@ -28,11 +29,9 @@ var fetchGitData = function(git) {
};
var remotes = {};
- //-- Throw an error if no data is passed
+ //-- Malformed/undefined git object
if ('undefined' === typeof git) {
throw new Error('No options passed');
-
- //-- Throw an error if no head or head.id is provided
} else if (!git.hasOwnProperty('head')) {
throw new Error('You must provide the head');
} else if (!git.head.hasOwnProperty('id')) {