mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 11:57:39 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -47,7 +47,9 @@ export async function removeChannelConfigWizard(
|
||||
runtime,
|
||||
);
|
||||
|
||||
if (channel === "done") return next;
|
||||
if (channel === "done") {
|
||||
return next;
|
||||
}
|
||||
|
||||
const label = getChannelPlugin(channel)?.meta.label ?? channel;
|
||||
const confirmed = guardCancel(
|
||||
@@ -57,7 +59,9 @@ export async function removeChannelConfigWizard(
|
||||
}),
|
||||
runtime,
|
||||
);
|
||||
if (!confirmed) continue;
|
||||
if (!confirmed) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const nextChannels: Record<string, unknown> = { ...next.channels };
|
||||
delete nextChannels[channel];
|
||||
|
||||
Reference in New Issue
Block a user