From 3be75ade3b8cd5041d89f977c7073b993bdfc694 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionic=C4=83=20Biz=C4=83u?= Date: Thu, 26 May 2016 07:12:07 +0300 Subject: [PATCH] Fixed #92. Define the `lines` variable. --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index ae75ac9..c0e5c47 100644 --- a/lib/index.js +++ b/lib/index.js @@ -528,7 +528,7 @@ GitStats.prototype.authors = function (options, callback) { var repo = new Gry(options.repo); repo.exec("shortlog -s -n --all", function (err, stdout) { if (err) { return callback(err); } - lines = stdout.split("\n"); + var lines = stdout.split("\n"); pieData = stdout.split("\n").map(function (c) { var splits = c.split("\t").map(function (cc) { return cc.trim();