mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 18:48:27 +00:00
chore: Enable more lint rules, disable some that trigger a lot. Will clean up later.
This commit is contained in:
@@ -436,7 +436,7 @@ export function resolveModelDirectiveSelection(params: {
|
||||
});
|
||||
return Object.assign({ candidate }, details);
|
||||
})
|
||||
.sort((a, b) => {
|
||||
.toSorted((a, b) => {
|
||||
if (b.score !== a.score) return b.score - a.score;
|
||||
if (a.isDefault !== b.isDefault) return a.isDefault ? -1 : 1;
|
||||
if (a.variantMatchCount !== b.variantMatchCount)
|
||||
|
||||
Reference in New Issue
Block a user