From 88c600b85e9588d4f565af68b5f8d19c6e833012 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@keylocation.sg> Date: Mon, 13 Mar 2017 06:33:28 +0100 Subject: [PATCH] Fix yarn.lock detection (#128) * Fix yarn.lock detection Closes #110, Closes #124 * Fix for tests :) --- lib/workers/branch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/workers/branch.js b/lib/workers/branch.js index 15323f195b..0bd1968d18 100644 --- a/lib/workers/branch.js +++ b/lib/workers/branch.js @@ -54,7 +54,7 @@ async function getParentBranch(branchName, config) { async function getYarnLockFile(packageJson, config) { // Detect if a yarn.lock file is in use const yarnLockFileName = path.join(path.dirname(config.packageFile), 'yarn.lock'); - if (await config.api.getFileContent(yarnLockFileName) === false) { + if (!await config.api.getFileContent(yarnLockFileName)) { return null; } // Copy over custom config files -- GitLab