diff --git a/package.json b/package.json index 55f9f35..03ceecb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "git-stats", - "version": "2.9.11", + "version": "2.9.12", "description": "Local git statistics including GitHub-like contributions calendars.", "main": "lib/index.js", "bin": { diff --git a/scripts/migration/2.0.0.js b/scripts/migration/2.0.0.js index e90defc..fc29320 100755 --- a/scripts/migration/2.0.0.js +++ b/scripts/migration/2.0.0.js @@ -11,8 +11,10 @@ var ReadJson = require("r-json") const DATA_FILE = Abs("~/.git-stats"); function migrate() { + var data = {}; + try { - var data = ReadJson(DATA_FILE) + data = ReadJson(DATA_FILE) } catch (e) { if (e.code === "ENOENT") { return;