fix: remove duplicate comment in orderProfilesByMode (#21409)

Merged via /review-pr -> /prepare-pr -> /merge-pr.

Prepared head SHA: 04271651d4fc0eb40f654b2bcb9ac919fbd7b8ab
Co-authored-by: adhitShet <[email protected]>
Co-authored-by: gumadeiras <[email protected]>
Reviewed-by: @gumadeiras
This commit is contained in:
adhitShet
2026-02-19 19:46:51 -05:00
committed by GitHub
co-authored by gumadeiras
parent ffa7de0467
commit 399781aaca
+1 -2
View File
@@ -144,8 +144,7 @@ function orderProfilesByMode(order: string[], store: AuthProfileStore): string[]
}
}
// Sort available profiles by lastUsed (oldest first = round-robin)
// Then by lastUsed (oldest first = round-robin within type)
// Sort available profiles by type preference, then by lastUsed (oldest first = round-robin within type)
const scored = available.map((profileId) => {
const type = store.profiles[profileId]?.type;
const typeScore = type === "oauth" ? 0 : type === "token" ? 1 : type === "api_key" ? 2 : 3;