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

@@ -15,8 +15,12 @@ export type ChannelsListOptions = {
};
const colorValue = (value: string) => {
if (value === "none") return theme.error(value);
if (value === "env") return theme.accent(value);
if (value === "none") {
return theme.error(value);
}
if (value === "env") {
return theme.accent(value);
}
return theme.success(value);
};
@@ -101,7 +105,9 @@ export async function channelsListCommand(
runtime: RuntimeEnv = defaultRuntime,
) {
const cfg = await requireValidConfig(runtime);
if (!cfg) return;
if (!cfg) {
return;
}
const includeUsage = opts.usage !== false;
const plugins = listChannelPlugins();
@@ -129,7 +135,9 @@ export async function channelsListCommand(
for (const plugin of plugins) {
const accounts = plugin.config.listAccountIds(cfg);
if (!accounts || accounts.length === 0) continue;
if (!accounts || accounts.length === 0) {
continue;
}
for (const accountId of accounts) {
const snapshot = await buildChannelAccountSnapshot({
plugin,