Skip to content
Snippets Groups Projects
Commit 05b9fd51 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

Rename currentJson

parent 467c33a5
No related branches found
No related tags found
No related merge requests found
...@@ -117,8 +117,8 @@ function updateDependency(depType, depName, currentVersion, newVersion) { ...@@ -117,8 +117,8 @@ function updateDependency(depType, depName, currentVersion, newVersion) {
return github.getFile(packageFile, branchName).then(res => { return github.getFile(packageFile, branchName).then(res => {
const currentSHA = res.body.sha; const currentSHA = res.body.sha;
const currentFileContent = new Buffer(res.body.content, 'base64').toString(); const currentFileContent = new Buffer(res.body.content, 'base64').toString();
const currentFileContentJson = JSON.parse(currentFileContent); const currentJson = JSON.parse(currentFileContent);
if (currentFileContentJson[depType][depName] !== newVersion) { if (currentJson[depType][depName] !== newVersion) {
// Branch is new, or needs version updated // Branch is new, or needs version updated
if (config.verbose) { if (config.verbose) {
console.log(`${depName}: Updating to ${newVersion} in branch ${branchName}`); console.log(`${depName}: Updating to ${newVersion} in branch ${branchName}`);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment