mirror of
https://github.com/IonicaBizau/git-stats.git
synced 2024-12-22 05:12:11 +01:00
Fixed the ReadJson call
This commit is contained in:
parent
7a9e1b0af4
commit
af7a202ff6
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ GitStats.record = function (data, callback) {
|
|||
* @return {GitStats} The `GitStats` object.
|
||||
*/
|
||||
GitStats.get = function (callback) {
|
||||
ReadJson(STORE_PATH, "utf-8", function (err, data) {
|
||||
ReadJson(STORE_PATH, function (err, data) {
|
||||
|
||||
if (err && err.code === "ENOENT") {
|
||||
return GitStats.save({}, function (err) {
|
||||
|
|
Loading…
Reference in a new issue