mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 07:47:39 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -5,15 +5,21 @@ export function createWizardSessionTracker() {
|
||||
|
||||
const findRunningWizard = (): string | null => {
|
||||
for (const [id, session] of wizardSessions) {
|
||||
if (session.getStatus() === "running") return id;
|
||||
if (session.getStatus() === "running") {
|
||||
return id;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
||||
const purgeWizardSession = (id: string) => {
|
||||
const session = wizardSessions.get(id);
|
||||
if (!session) return;
|
||||
if (session.getStatus() === "running") return;
|
||||
if (!session) {
|
||||
return;
|
||||
}
|
||||
if (session.getStatus() === "running") {
|
||||
return;
|
||||
}
|
||||
wizardSessions.delete(id);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user