mirror of
https://github.com/hay-kot/homebox.git
synced 2025-07-31 14:50:28 +00:00
use ToUpper instead
This commit is contained in:
parent
d1b8b5eea2
commit
8dc3ca4db0
2 changed files with 9 additions and 3 deletions
|
@ -90,10 +90,10 @@ func (cs *CurrencyRegistry) Slice() []Currency {
|
|||
}
|
||||
|
||||
func (cs *CurrencyRegistry) IsSupported(code string) bool {
|
||||
lower := strings.ToLower(code)
|
||||
upper := strings.ToUpper(code)
|
||||
|
||||
cs.mu.RLock()
|
||||
defer cs.mu.RUnlock()
|
||||
_, ok := cs.registry[lower]
|
||||
_, ok := cs.registry[upper]
|
||||
return ok
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue