Skip to content

Commit e851ebd

Browse files
wt-l00eregon
authored andcommitted
Remove unused platform args from computeBaseKey
ref: #473
1 parent a4effe4 commit e851ebd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bundler.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ export async function bundleInstall(gemfile, lockFile, platform, engine, rubyVer
182182

183183
// cache key
184184
const paths = [cachePath]
185-
const baseKey = await computeBaseKey(platform, engine, rubyVersion, lockFile, cacheVersion)
185+
const baseKey = await computeBaseKey(engine, rubyVersion, lockFile, cacheVersion)
186186
const key = `${baseKey}-${await common.hashFile(lockFile)}`
187187
// If only Gemfile.lock changes we can reuse part of the cache, and clean old gem versions below
188188
const restoreKeys = [`${baseKey}-`]
@@ -232,7 +232,7 @@ export async function bundleInstall(gemfile, lockFile, platform, engine, rubyVer
232232
return true
233233
}
234234

235-
async function computeBaseKey(platform, engine, version, lockFile, cacheVersion) {
235+
async function computeBaseKey(engine, version, lockFile, cacheVersion) {
236236
const cwd = process.cwd()
237237
const bundleWith = process.env['BUNDLE_WITH'] || ''
238238
const bundleWithout = process.env['BUNDLE_WITHOUT'] || ''

dist/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)