mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-25 03:04:29 -04:00
chore: fix lint warnings
This commit is contained in:
committed by
Vignesh
parent
f72214725d
commit
30098b04d7
@@ -204,7 +204,7 @@ function sortValue(value: unknown): unknown {
|
||||
}
|
||||
if (value && typeof value === "object") {
|
||||
const sortedEntries = Object.keys(value as Record<string, unknown>)
|
||||
.sort((a, b) => a.localeCompare(b))
|
||||
.toSorted((a, b) => a.localeCompare(b))
|
||||
.map((key) => [key, sortValue((value as Record<string, unknown>)[key])]);
|
||||
return Object.fromEntries(sortedEntries);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user