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

@@ -238,7 +238,7 @@ func (e *EXMO) WithdrawCryptocurrency(currency, address, invoice string, amount
v.Set("currency", currency)
v.Set("address", address)
if strings.ToUpper(currency) == "XRP" {
if strings.EqualFold(currency, "XRP") {
v.Set(invoice, invoice)
}