From 0067f023d24e12a5a144447c2745dcb71a61452d Mon Sep 17 00:00:00 2001 From: Vladimir Safonkin Date: Fri, 20 Aug 2021 16:45:26 +0300 Subject: [PATCH] Fix unstaged changes in index.js --- dist/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index fa508cf..5dff700 100644 --- a/dist/index.js +++ b/dist/index.js @@ -7853,14 +7853,15 @@ function run() { } exports.run = run; function getVersionFromGlobalJson(globalJsonPath) { - let version = ""; + let version = ''; const globalJson = JSON.parse( // .trim() is necessary to strip BOM https://github.com/nodejs/node/issues/20649 fs.readFileSync(globalJsonPath, { encoding: 'utf8' }).trim()); if (globalJson.sdk && globalJson.sdk.version) { version = globalJson.sdk.version; const rollForward = globalJson.sdk.rollForward; - if (rollForward && (rollForward === 'latestFeature' || rollForward === 'latestPatch')) { + if (rollForward && + (rollForward === 'latestFeature' || rollForward === 'latestPatch')) { const [major, minor] = version.split('.'); version = `${major}.${minor}`; }