From bd9411e9783a374a2b458cab91a2bad9d31e13bf Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Sat, 7 Mar 2020 13:51:13 +0100 Subject: [PATCH] Remove duplicated code --- dist/index.js | 4 ---- index.js | 4 ---- 2 files changed, 8 deletions(-) diff --git a/dist/index.js b/dist/index.js index 07aaff2..ed216d2 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1118,10 +1118,6 @@ function setupPath(rubyPrefix, ruby, toolsPath) { if (toolsPath) { newPath.push(toolsPath) } - if (ruby.startsWith('rubinius')) { - newPath.push(path.join(rubyPrefix, 'gems', 'bin')) - } - core.exportVariable('PATH', [...newPath, ...cleanPath].join(path.delimiter)) } diff --git a/index.js b/index.js index 152c804..71741dd 100644 --- a/index.js +++ b/index.js @@ -129,10 +129,6 @@ function setupPath(rubyPrefix, ruby, toolsPath) { if (toolsPath) { newPath.push(toolsPath) } - if (ruby.startsWith('rubinius')) { - newPath.push(path.join(rubyPrefix, 'gems', 'bin')) - } - core.exportVariable('PATH', [...newPath, ...cleanPath].join(path.delimiter)) }