From 05b9fd51fdb4eeb2d14307bd73f4038f296a11a4 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@keylocation.sg>
Date: Mon, 9 Jan 2017 07:11:39 +0100
Subject: [PATCH] Rename currentJson

---
 src/index.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/index.js b/src/index.js
index df559daa87..f7d47b01e8 100644
--- a/src/index.js
+++ b/src/index.js
@@ -117,8 +117,8 @@ function updateDependency(depType, depName, currentVersion, newVersion) {
     return github.getFile(packageFile, branchName).then(res => {
       const currentSHA = res.body.sha;
       const currentFileContent = new Buffer(res.body.content, 'base64').toString();
-      const currentFileContentJson = JSON.parse(currentFileContent);
-      if (currentFileContentJson[depType][depName] !== newVersion) {
+      const currentJson = JSON.parse(currentFileContent);
+      if (currentJson[depType][depName] !== newVersion) {
         // Branch is new, or needs version updated
         if (config.verbose) {
           console.log(`${depName}: Updating to ${newVersion} in branch ${branchName}`);
-- 
GitLab