Skip to content

Commit 30a4fe9

Browse files
committed
chore: lint
1 parent d96e325 commit 30a4fe9

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

src/buddy.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,14 @@ export class Buddy {
243243
hasActualChanges = true
244244
break
245245
}
246-
} else {
246+
}
247+
else {
247248
// New file, counts as a change
248249
hasActualChanges = true
249250
break
250251
}
251-
} catch (error) {
252+
}
253+
catch {
252254
// If we can't read the file, assume it's a change
253255
hasActualChanges = true
254256
break

src/registry/registry-client.ts

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,33 +1107,34 @@ export class RegistryClient {
11071107

11081108
// Also directly check packages in each package.json for better coverage
11091109
this.logger.info(`Checking ${packageJsonFiles.length} package.json files directly`)
1110-
1110+
11111111
for (const filePath of packageJsonFiles) {
1112-
if (filePath === 'package.json') continue // Skip root, already checked
1113-
1112+
if (filePath === 'package.json')
1113+
continue // Skip root, already checked
1114+
11141115
try {
11151116
const fullPath = path.join(this.projectPath, filePath)
11161117
const content = fs.readFileSync(fullPath, 'utf-8')
11171118
const packageData = JSON.parse(content)
1118-
1119+
11191120
const allDeps = {
11201121
...packageData.dependencies,
11211122
...packageData.devDependencies,
11221123
...packageData.peerDependencies,
11231124
...packageData.optionalDependencies,
11241125
}
1125-
1126+
11261127
for (const [packageName, currentVersion] of Object.entries(allDeps)) {
11271128
// Skip workspace dependencies and invalid versions
11281129
if (typeof currentVersion !== 'string' || currentVersion.startsWith('workspace:')) {
11291130
continue
11301131
}
1131-
1132+
11321133
// Check if already found in workspace results
11331134
if (allResults.some(r => r.name === packageName)) {
11341135
continue
11351136
}
1136-
1137+
11371138
try {
11381139
const latestVersion = await this.getLatestVersion(packageName)
11391140
if (latestVersion) {
@@ -1148,7 +1149,8 @@ export class RegistryClient {
11481149
})
11491150
}
11501151
}
1151-
} catch (error) {
1152+
}
1153+
catch {
11521154
// Continue if version check fails for this package
11531155
continue
11541156
}
@@ -1278,7 +1280,7 @@ export class RegistryClient {
12781280
return filePath
12791281
}
12801282
}
1281-
catch (error) {
1283+
catch {
12821284
// Continue searching if this file is malformed
12831285
continue
12841286
}

0 commit comments

Comments
 (0)