mirror of
https://github.com/IonicaBizau/git-stats.git
synced 2024-12-30 16:52:09 +01:00
⬆️ 2.9.12 🎉
This commit is contained in:
parent
32ba756865
commit
3c0d521b1a
2 changed files with 4 additions and 2 deletions
|
@ -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": {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue