aboutsummaryrefslogtreecommitdiff
path: root/lib/fetchGitData.js
diff options
context:
space:
mode:
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 = [];
}