Add non-null check

This commit is contained in:
Benoit Daloze
2025-07-26 10:58:48 +02:00
parent ba9e71c195
commit bb6434c747
2 changed files with 2 additions and 2 deletions
Generated Vendored
+1 -1
View File
@@ -85351,7 +85351,7 @@ async function setupRuby(options = {}) {
await common.time('bundle install', async () =>
bundler.bundleInstall(gemfile, lockFile, platform, engine, version, bundlerVersion, inputs['cache-version']))
if (fs.existsSync(lockFile)) {
if (lockFile !== null && fs.existsSync(lockFile)) {
await core.group(`Print lockfile`, async () =>
await exec.exec('cat', [lockFile]))
}
+1 -1
View File
@@ -100,7 +100,7 @@ export async function setupRuby(options = {}) {
await common.time('bundle install', async () =>
bundler.bundleInstall(gemfile, lockFile, platform, engine, version, bundlerVersion, inputs['cache-version']))
if (fs.existsSync(lockFile)) {
if (lockFile !== null && fs.existsSync(lockFile)) {
await core.group(`Print lockfile`, async () =>
await exec.exec('cat', [lockFile]))
}