Skip to content

Commit 4a8692a

Browse files
committed
Lint nit
1 parent 25dc3bf commit 4a8692a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/commands/optimize.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,9 @@ const lockIncludesByAgent: Record<Agent, AgentLockIncludesFn> = (() => {
141141
// we treat it as a yarn.lock. When lockBasename ends with a .lock we
142142
// treat it as a package-lock.json. The bun.lock format is not identical
143143
// package-lock.json, however it close enough for npmLockIncludes to work.
144-
const lockScanner =
145-
lockBasename?.endsWith(LOCK_EXT) ? npmLockIncludes : yarnLockIncludes
144+
const lockScanner = lockBasename?.endsWith(LOCK_EXT)
145+
? npmLockIncludes
146+
: yarnLockIncludes
146147
return lockScanner(lockSrc, name)
147148
},
148149
[NPM]: npmLockIncludes,

0 commit comments

Comments
 (0)