aboutsummaryrefslogtreecommitdiff
path: root/lib/fetchGitData.js
diff options
context:
space:
mode:
authorGabe Hayes <[email protected]>2013-07-29 10:47:56 -0700
committerGabe Hayes <[email protected]>2013-07-29 10:47:56 -0700
commitecb13e11c3d7dd29552e5872329d8d0ea4a18fde (patch)
tree6af13b363607acc20a2130f4f1b46ac3be7c6ad1 /lib/fetchGitData.js
parent598554ce00cc0096de3368b522f97b4b3024ca54 (diff)
downloadnode-coveralls-ecb13e11c3d7dd29552e5872329d8d0ea4a18fde.tar.xz
node-coveralls-ecb13e11c3d7dd29552e5872329d8d0ea4a18fde.zip
added full test coverage on fetchGitData
Diffstat (limited to 'lib/fetchGitData.js')
-rw-r--r--lib/fetchGitData.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/fetchGitData.js b/lib/fetchGitData.js
index d79a3db..6ab0209 100644
--- a/lib/fetchGitData.js
+++ b/lib/fetchGitData.js
@@ -55,9 +55,6 @@ var fetchGitData = function(git) {
}
//-- Set required properties of git if they weren"t provided
- if (!git.hasOwnProperty("head")) {
- git.head = {};
- }
if (!git.hasOwnProperty("branch")) {
git.branch = "";
}
@@ -66,13 +63,10 @@ var fetchGitData = function(git) {
}
//-- Assert the property types
- if ("object" !== typeof git.head) {
- git.head = {};
- }
if ("string" !== typeof git.branch) {
git.branch = "";
}
- if (!git.remotes.hasOwnProperty("length")) {
+ if (!(git.remotes instanceof Array)) {
git.remotes = [];
}