From 3c0d521b1a3e02b0a693a4fd2c4196145cb91e28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionic=C4=83=20Biz=C4=83u?= Date: Sun, 23 Oct 2016 10:47:38 +0300 Subject: [PATCH] :arrow_up: 2.9.12 :tada: --- package.json | 2 +- scripts/migration/2.0.0.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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;