fix(lint): clear remaining biome errors (unused code, optional chains, non-null assertions, effect deps)

This commit is contained in:
SnapOtter
2026-06-21 01:49:48 +08:00
parent 7561f2a8c3
commit 19dc6ba554
20 changed files with 17 additions and 26 deletions
+1 -1
View File
@@ -326,7 +326,7 @@ export async function authRoutes(app: FastifyInstance): Promise<void> {
const audit = auditFromRequest(request);
if (!user || !user.passwordHash) {
if (!user?.passwordHash) {
authAttempts.inc({ method: "password", result: "failure" });
await audit("LOGIN_FAILED", {
username: sanitizeAuditInput(body.username),