Skip to content

Commit 30e5954

Browse files
committed
Fix variable which was not defined. Fixes #90.
1 parent a5e2a2d commit 30e5954

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// Dependencies
1+
"use strict";
2+
23
var Ul = require("ul")
34
, Abs = require("abs")
45
, ReadJson = require("r-json")
@@ -498,7 +499,7 @@ GitStats.prototype.ansiCalendar = function (options, callback) {
498499
;
499500

500501
self.iterateDays(options, function (cDay) {
501-
cDayObj = graph[cDay];
502+
var cDayObj = graph[cDay];
502503
if (!cDayObj) { return; }
503504
cal.push([cDay, cDayObj.c]);
504505
});

0 commit comments

Comments
 (0)