Abstract filling up maps.

This commit is contained in:
2024-10-07 15:56:24 +01:00
parent d2a0d2167e
commit 971c84f762
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
}