mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-07 12:37:48 +00:00
Use EqualFold ti avoid memory reallocations
This commit is contained in:
@@ -22,7 +22,7 @@ func FindItemInMap[T any](item string, collection map[KeyReference[string]]Value
|
||||
if n.Value == item {
|
||||
return &o
|
||||
}
|
||||
if strings.ToLower(n.Value) == strings.ToLower(item) {
|
||||
if strings.EqualFold(item, n.Value) {
|
||||
return &o
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user