chore: Enable "curly" rule to avoid single-statement if confusion/errors.

This commit is contained in:
cpojer
2026-01-31 16:19:20 +09:00
parent 009b16fab8
commit 5ceff756e1
1266 changed files with 27871 additions and 9393 deletions

View File

@@ -2,7 +2,9 @@ import { colorize, isRich, theme } from "../terminal/theme.js";
const formatKv = (line: string, rich: boolean) => {
const idx = line.indexOf(": ");
if (idx <= 0) return colorize(rich, theme.muted, line);
if (idx <= 0) {
return colorize(rich, theme.muted, line);
}
const key = line.slice(0, idx);
const value = line.slice(idx + 2);
@@ -21,7 +23,9 @@ export function formatHealthCheckFailure(err: unknown, opts: { rich?: boolean }
const raw = String(err);
const message = err instanceof Error ? err.message : raw;
if (!rich) return `Health check failed: ${raw}`;
if (!rich) {
return `Health check failed: ${raw}`;
}
const lines = message
.split("\n")