Fixed the ReadJson call

This commit is contained in:
Ionică Bizău 2015-07-08 10:44:19 +03:00
parent 7a9e1b0af4
commit af7a202ff6

View file

@ -83,7 +83,7 @@ GitStats.record = function (data, callback) {
* @return {GitStats} The `GitStats` object. * @return {GitStats} The `GitStats` object.
*/ */
GitStats.get = function (callback) { GitStats.get = function (callback) {
ReadJson(STORE_PATH, "utf-8", function (err, data) { ReadJson(STORE_PATH, function (err, data) {
if (err && err.code === "ENOENT") { if (err && err.code === "ENOENT") {
return GitStats.save({}, function (err) { return GitStats.save({}, function (err) {