Skip to content

Commit b25b68b

Browse files
committed
refactor: remove manual file validation from coana-fix
SDK v3.0 now handles file validation automatically via the onFileValidation callback, eliminating the need for manual validation code in individual commands.
1 parent 4831cdd commit b25b68b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/cli/src/commands/fix/coana-fix.mts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ export async function coanaFix(
8484
const scanFilepaths = await getPackageFilesForScan(['.'], supportedFiles, {
8585
cwd,
8686
})
87+
88+
// SDK v3.0 automatically validates file readability via onFileValidation callback.
8789
const uploadCResult = await handleApiCall(
8890
sockSdk.uploadManifestFiles(orgSlug, scanFilepaths),
8991
{
@@ -195,7 +197,7 @@ export async function coanaFix(
195197
// Clean up the temporary file.
196198
try {
197199
await fs.unlink(tmpFile)
198-
} catch (e) {
200+
} catch (_e) {
199201
// Ignore cleanup errors.
200202
}
201203
}

0 commit comments

Comments
 (0)