From 3033b08f70355e62a58e5a00f957ebf05a45ce9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionic=C4=83=20Biz=C4=83u?= Date: Thu, 19 Nov 2015 12:42:57 +0200 Subject: [PATCH] Fixed the getConfig callback --- lib/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/index.js b/lib/index.js index 4a46900..b88ae01 100644 --- a/lib/index.js +++ b/lib/index.js @@ -87,6 +87,9 @@ GitStats.prototype.getConfig = function (callback) { } return {}; } + if (callback) { + callback(null, data); + } return data; };