fix: resolve unused variables in backend utils

Fixed @typescript-eslint/no-unused-vars errors in:
- starter.ts: removed unused error variables (2 fixes)
- auto-ssl-setup.ts: removed unused error variable (1 fix)
- ssh-key-utils.ts: removed unused error variables (3 fixes)
- user-crypto.ts: removed unused error variables (5 fixes)
- data-crypto.ts: removed unused plaintextFields and error variables (2 fixes)
- simple-db-ops.ts: removed unused parameters _userId and _tableName (2 fixes)

Total: 15 unused variable errors fixed

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
ZacharyZcR
2025-10-09 18:43:23 +08:00
parent 3b40eff2a9
commit 9d6d8a7e0e
10 changed files with 2361 additions and 19 deletions

View File

@@ -49,7 +49,7 @@ function detectKeyTypeFromContent(keyContent: string): string {
}
return "ssh-rsa";
} catch (error) {
} catch {
return "ssh-rsa";
}
}
@@ -240,7 +240,7 @@ export function parseSSHKey(
} else {
publicKey = "";
}
} catch (error) {
} catch {
publicKey = "";
}
@@ -318,7 +318,7 @@ export function detectKeyType(privateKeyData: string): string {
return "unknown";
}
return parsedKey.type || "unknown";
} catch (error) {
} catch {
return "unknown";
}
}