From 045dd42354ce3ff1331108b1c9b4153b56cbe34d Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Sun, 5 Apr 2020 13:51:11 +0200 Subject: [PATCH] Fix indentation --- dist/index.js | 20 ++++++++++---------- index.js | 20 ++++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/dist/index.js b/dist/index.js index dd66826..3882165 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1055,19 +1055,19 @@ function createGemRC() { } function setupPath(ruby, newPathEntries) { - const originalPath = process.env['PATH'].split(path.delimiter) - let cleanPath = originalPath.filter(entry => !/\bruby\b/i.test(entry)) + const originalPath = process.env['PATH'].split(path.delimiter) + let cleanPath = originalPath.filter(entry => !/\bruby\b/i.test(entry)) - if (cleanPath.length !== originalPath.length) { - console.log('Entries removed from PATH to avoid conflicts with Ruby:') - for (const entry of originalPath) { - if (!cleanPath.includes(entry)) { - console.log(` ${entry}`) - } - } + if (cleanPath.length !== originalPath.length) { + console.log('Entries removed from PATH to avoid conflicts with Ruby:') + for (const entry of originalPath) { + if (!cleanPath.includes(entry)) { + console.log(` ${entry}`) + } } + } - core.exportVariable('PATH', [...newPathEntries, ...cleanPath].join(path.delimiter)) + core.exportVariable('PATH', [...newPathEntries, ...cleanPath].join(path.delimiter)) } function readBundledWithFromGemfileLock() { diff --git a/index.js b/index.js index f052449..e5b1521 100644 --- a/index.js +++ b/index.js @@ -97,19 +97,19 @@ function createGemRC() { } function setupPath(ruby, newPathEntries) { - const originalPath = process.env['PATH'].split(path.delimiter) - let cleanPath = originalPath.filter(entry => !/\bruby\b/i.test(entry)) + const originalPath = process.env['PATH'].split(path.delimiter) + let cleanPath = originalPath.filter(entry => !/\bruby\b/i.test(entry)) - if (cleanPath.length !== originalPath.length) { - console.log('Entries removed from PATH to avoid conflicts with Ruby:') - for (const entry of originalPath) { - if (!cleanPath.includes(entry)) { - console.log(` ${entry}`) - } - } + if (cleanPath.length !== originalPath.length) { + console.log('Entries removed from PATH to avoid conflicts with Ruby:') + for (const entry of originalPath) { + if (!cleanPath.includes(entry)) { + console.log(` ${entry}`) + } } + } - core.exportVariable('PATH', [...newPathEntries, ...cleanPath].join(path.delimiter)) + core.exportVariable('PATH', [...newPathEntries, ...cleanPath].join(path.delimiter)) } function readBundledWithFromGemfileLock() {