mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 21:38:25 +00:00
chore: Enable some "perf" lint rules.
This commit is contained in:
@@ -434,7 +434,7 @@ export function resolveModelDirectiveSelection(params: {
|
||||
defaultProvider,
|
||||
defaultModel,
|
||||
});
|
||||
return { candidate, ...details };
|
||||
return Object.assign({ candidate }, details);
|
||||
})
|
||||
.sort((a, b) => {
|
||||
if (b.score !== a.score) return b.score - a.score;
|
||||
|
||||
Reference in New Issue
Block a user