From 8731780d5eceae261f283437dcf41e044114374e Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Fri, 29 Jul 2022 17:58:48 +0200 Subject: [PATCH] Remove extra condition --- bundler.js | 2 +- dist/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bundler.js b/bundler.js index 79c4ace..03709f3 100644 --- a/bundler.js +++ b/bundler.js @@ -80,7 +80,7 @@ export async function installBundler(bundlerVersionInput, rubygemsInputSet, lock } else if (common.isBundler2Default(engine, rubyVersion)) { console.log(`Using Bundler 2 shipped with ${engine}-${rubyVersion}`) return '2' - } else if (common.isBundler1Default(engine, rubyVersion) && engine !== 'ruby') { + } else if (common.isBundler1Default(engine, rubyVersion)) { console.log(`Using Bundler 1 shipped with ${engine}-${rubyVersion}`) return '1' } else { diff --git a/dist/index.js b/dist/index.js index bf15052..e16c42b 100644 --- a/dist/index.js +++ b/dist/index.js @@ -94,7 +94,7 @@ async function installBundler(bundlerVersionInput, rubygemsInputSet, lockFile, p } else if (common.isBundler2Default(engine, rubyVersion)) { console.log(`Using Bundler 2 shipped with ${engine}-${rubyVersion}`) return '2' - } else if (common.isBundler1Default(engine, rubyVersion) && engine !== 'ruby') { + } else if (common.isBundler1Default(engine, rubyVersion)) { console.log(`Using Bundler 1 shipped with ${engine}-${rubyVersion}`) return '1' } else {