Skip to content

Commit 6203396

Browse files
code-yeongyusisyphus-dev-ai
authored andcommitted
refactor(background-agent): simplify loop detector null guard
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
1 parent f9f71f6 commit 6203396

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/features/background-agent/loop-detector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export function recordToolCall(
6262
}
6363

6464
function sortObject(obj: unknown): unknown {
65-
if (obj === null || obj === undefined) return obj
65+
if (obj == null) return obj
6666
if (typeof obj !== "object") return obj
6767
if (Array.isArray(obj)) return obj.map(sortObject)
6868

0 commit comments

Comments
 (0)