mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-13 07:20:34 +00:00
chore: Lint extensions folder.
This commit is contained in:
@@ -13,7 +13,9 @@ const StateOrder: readonly CallState[] = [
|
||||
|
||||
export function transitionState(call: CallRecord, newState: CallState): void {
|
||||
// No-op for same state or already terminal.
|
||||
if (call.state === newState || TerminalStates.has(call.state)) return;
|
||||
if (call.state === newState || TerminalStates.has(call.state)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Terminal states can always be reached from non-terminal.
|
||||
if (TerminalStates.has(newState)) {
|
||||
|
||||
Reference in New Issue
Block a user