You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returncallback(newError("The date field should be a string or a date object."));
57
+
callback(newError("The date field should be a string or a date object."));
58
+
returnGitStats;
58
59
}
59
60
60
61
if(typeofdata.hash!=="string"||!data.hash){
61
-
returncallback(newError("Invalid hash."));
62
+
callback(newError("Invalid hash."));
63
+
returnGitStats;
62
64
}
63
65
64
66
if(typeofdata.url!=="string"||!data.url){
65
-
returncallback(newError("Invalid url field. This commit is not recorded into the git-stats history since you didn't added the remote url. You can import the previous commits using the git-stats-importer tool."));
67
+
callback(newError("Invalid url field. This commit is not recorded into the git-stats history since you didn't added the remote url. You can import the previous commits using the git-stats-importer tool."));
68
+
returnGitStats;
66
69
}
67
70
68
71
// Get stats
@@ -77,6 +80,8 @@ GitStats.record = function (data, callback) {
77
80
78
81
GitStats.save(stats,callback);
79
82
});
83
+
84
+
returnGitStats;
80
85
};
81
86
82
87
/**
@@ -86,7 +91,7 @@ GitStats.record = function (data, callback) {
86
91
* @name get
87
92
* @function
88
93
* @param {Function} callback The callback function.
0 commit comments