mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-07 15:11:03 +00:00
String concatenation/conversion/formatting improvements (#393)
* Magic strings * Comment, format and builder fixes
This commit is contained in:
committed by
Adrian Gallagher
parent
17a786536d
commit
8c30505d46
@@ -210,12 +210,9 @@ func (e *EXMO) GetCryptoDepositAddress() (map[string]string, error) {
|
||||
switch r := result.(type) {
|
||||
case map[string]interface{}:
|
||||
mapString := make(map[string]string)
|
||||
|
||||
for key, value := range r {
|
||||
strValue := fmt.Sprintf("%v", value)
|
||||
mapString[key] = strValue
|
||||
mapString[key] = value.(string)
|
||||
}
|
||||
|
||||
return mapString, nil
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user