Use string.EqualFold where necessary

This commit is contained in:
Adrian Gallagher
2019-06-04 17:27:00 +10:00
parent e965e54e09
commit 3010b62ac1
7 changed files with 157 additions and 157 deletions

View File

@@ -329,7 +329,7 @@ func IsValidExchange(exchangeName string) bool {
exchangeName = strings.ToLower(exchangeName)
cfg := config.GetConfig()
for x := range cfg.Exchanges {
if strings.ToLower(cfg.Exchanges[x].Name) == exchangeName && cfg.Exchanges[x].Enabled {
if strings.EqualFold(cfg.Exchanges[x].Name, exchangeName) && cfg.Exchanges[x].Enabled {
return true
}
}