Skip to content

Commit b00e338

Browse files
committed
Lint nits
1 parent 0806e41 commit b00e338

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

src/commands/fix/npm-fix.mts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,9 @@ export async function npmFix(
255255
vulnerableVersionRange,
256256
} of infos.values()) {
257257
if (semver.gte(oldVersion, firstPatchedVersionIdentifier)) {
258-
debugLog(`${oldId} is >= ${firstPatchedVersionIdentifier}, skipping.`)
258+
debugLog(
259+
`${oldId} is >= ${firstPatchedVersionIdentifier}, skipping.`,
260+
)
259261
continue infosLoop
260262
}
261263
const newVersion = findBestPatchVersion(

src/commands/fix/pnpm-fix.mts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -287,11 +287,12 @@ export async function pnpmFix(
287287

288288
// actualTree may not be defined on the first iteration of pkgJsonPathsLoop.
289289
if (!actualTree) {
290-
const maybeActualTree = isCi && existsSync(path.join(rootPath, 'node_modules'))
291-
? // eslint-disable-next-line no-await-in-loop
292-
await getActualTree(cwd)
293-
: // eslint-disable-next-line no-await-in-loop
294-
await install(pkgEnvDetails, { cwd, spinner })
290+
const maybeActualTree =
291+
isCi && existsSync(path.join(rootPath, 'node_modules'))
292+
? // eslint-disable-next-line no-await-in-loop
293+
await getActualTree(cwd)
294+
: // eslint-disable-next-line no-await-in-loop
295+
await install(pkgEnvDetails, { cwd, spinner })
295296
const maybeLockfileContent = maybeActualTree
296297
? // eslint-disable-next-line no-await-in-loop
297298
await readPnpmLockfile(lockfilePath)
@@ -358,7 +359,9 @@ export async function pnpmFix(
358359
vulnerableVersionRange,
359360
} of infos.values()) {
360361
if (semver.gte(oldVersion, firstPatchedVersionIdentifier)) {
361-
debugLog(`${oldId} is >= ${firstPatchedVersionIdentifier}, skipping.`)
362+
debugLog(
363+
`${oldId} is >= ${firstPatchedVersionIdentifier}, skipping.`,
364+
)
362365
continue infosLoop
363366
}
364367
const newVersion = findBestPatchVersion(

0 commit comments

Comments
 (0)