mirror of
https://github.com/IonicaBizau/git-stats.git
synced 2024-09-28 19:31:30 +02:00
Fixed the ReadJson call
This commit is contained in:
parent
7a9e1b0af4
commit
af7a202ff6
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user