This commit is contained in:
Tristan Cartledge
2023-12-06 14:54:55 +00:00
parent 367b64d6db
commit 53f342ba63
3 changed files with 11 additions and 7 deletions

View File

@@ -533,6 +533,10 @@ func GenerateCleanSpecConfigBaseURL(baseURL *url.URL, dir string, includeFile bo
}
func syncMapToMap[K comparable, V any](sm *sync.Map) map[K]V {
if sm == nil {
return nil
}
m := make(map[K]V)
sm.Range(func(key, value interface{}) bool {