fix multi-api key bug

This commit is contained in:
Mukhtar Akere
2025-04-11 00:05:09 +01:00
parent a357897222
commit 101ae4197e
13 changed files with 282 additions and 140 deletions

View File

@@ -36,12 +36,12 @@ func getDefaultExtensions() []string {
}
// Remove duplicates
seen := make(map[string]bool)
seen := make(map[string]struct{})
var unique []string
for _, ext := range allExts {
if !seen[ext] {
seen[ext] = true
if _, ok := seen[ext]; !ok {
seen[ext] = struct{}{}
unique = append(unique, ext)
}
}