mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 09:40:43 +00:00
refactor(lint): enable map spread rule
This commit is contained in:
@@ -215,10 +215,11 @@ export async function main() {
|
||||
}
|
||||
|
||||
const rows = Object.values(totalsByJob)
|
||||
.map((r) => ({
|
||||
...r,
|
||||
models: Object.values(r.models).toSorted((a, b) => b.total_tokens - a.total_tokens),
|
||||
}))
|
||||
.map((r) =>
|
||||
Object.assign({}, r, {
|
||||
models: Object.values(r.models).toSorted((a, b) => b.total_tokens - a.total_tokens),
|
||||
}),
|
||||
)
|
||||
.toSorted((a, b) => b.total_tokens - a.total_tokens);
|
||||
|
||||
if (asJson) {
|
||||
|
||||
Reference in New Issue
Block a user