We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32ba756 commit 3c0d521Copy full SHA for 3c0d521
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "git-stats",
3
- "version": "2.9.11",
+ "version": "2.9.12",
4
"description": "Local git statistics including GitHub-like contributions calendars.",
5
"main": "lib/index.js",
6
"bin": {
scripts/migration/2.0.0.js
@@ -11,8 +11,10 @@ var ReadJson = require("r-json")
11
const DATA_FILE = Abs("~/.git-stats");
12
13
function migrate() {
14
+ var data = {};
15
+
16
try {
- var data = ReadJson(DATA_FILE)
17
+ data = ReadJson(DATA_FILE)
18
} catch (e) {
19
if (e.code === "ENOENT") {
20
return;
0 commit comments