Abstract filling up maps.

This commit is contained in:
2024-11-06 11:32:37 +00:00
parent da4f97de04
commit 345c0c4a11
2 changed files with 21 additions and 31 deletions
+8
View File
@@ -350,3 +350,11 @@ func (t *TraefikOidc) exchangeCodeForToken(code string) (map[string]interface{},
return result, nil
}
func createStringMap(keys []string) map[string]struct{} {
result := make(map[string]struct{})
for _, key := range keys {
result[key] = struct{}{}
}
return result
}