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,11 +2,17 @@ export function parseKeyValueOutput(output: string, separator: string): Record<s
const entries: Record<string, string> = {};
for (const rawLine of output.split(/\r?\n/)) {
const line = rawLine.trim();
if (!line) continue;
if (!line) {
continue;
}
const idx = line.indexOf(separator);
if (idx <= 0) continue;
if (idx <= 0) {
continue;
}
const key = line.slice(0, idx).trim().toLowerCase();
if (!key) continue;
if (!key) {
continue;
}
const value = line.slice(idx + separator.length).trim();
entries[key] = value;
}