Skip to content

Commit bb6434c

Browse files
committed
Add non-null check
1 parent ba9e71c commit bb6434c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export async function setupRuby(options = {}) {
100100
await common.time('bundle install', async () =>
101101
bundler.bundleInstall(gemfile, lockFile, platform, engine, version, bundlerVersion, inputs['cache-version']))
102102

103-
if (fs.existsSync(lockFile)) {
103+
if (lockFile !== null && fs.existsSync(lockFile)) {
104104
await core.group(`Print lockfile`, async () =>
105105
await exec.exec('cat', [lockFile]))
106106
}

0 commit comments

Comments
 (0)