[Pkg-javascript-commits] [node-coveralls] 77/332: collapsed logical block
Bastien Roucariès
rouca at moszumanska.debian.org
Thu Nov 9 13:53:42 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-coveralls.
commit 598554ce00cc0096de3368b522f97b4b3024ca54
Author: Gabe Hayes <gabriel.hayes at gmail.com>
Date: Sat Jul 27 11:56:25 2013 -0700
collapsed logical block
---
lib/fetchGitData.js | 5 ++---
1 file 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')) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-coveralls.git
More information about the Pkg-javascript-commits
mailing list