go fmt
This commit is contained in:
parent
b3b8b37855
commit
fedafbdd49
2 changed files with 14 additions and 14 deletions
|
@ -375,7 +375,7 @@ func (cmd *AddMultisigAddressCmd) UnmarshalJSON(b []byte) error {
|
||||||
return errors.New("second parameter keys must be an array")
|
return errors.New("second parameter keys must be an array")
|
||||||
}
|
}
|
||||||
keys := make([]string, len(ikeys))
|
keys := make([]string, len(ikeys))
|
||||||
for i, val := range(ikeys) {
|
for i, val := range ikeys {
|
||||||
keys[i], ok = val.(string)
|
keys[i], ok = val.(string)
|
||||||
if !ok {
|
if !ok {
|
||||||
return errors.New("second parameter keys must be an array of strings")
|
return errors.New("second parameter keys must be an array of strings")
|
||||||
|
@ -618,7 +618,7 @@ func (cmd *CreateMultisigCmd) UnmarshalJSON(b []byte) error {
|
||||||
return errors.New("second parameter keys must be an array")
|
return errors.New("second parameter keys must be an array")
|
||||||
}
|
}
|
||||||
keys := make([]string, len(ikeys))
|
keys := make([]string, len(ikeys))
|
||||||
for i, val := range(ikeys) {
|
for i, val := range ikeys {
|
||||||
keys[i], ok = val.(string)
|
keys[i], ok = val.(string)
|
||||||
if !ok {
|
if !ok {
|
||||||
return errors.New("second parameter keys must be an array of strings")
|
return errors.New("second parameter keys must be an array of strings")
|
||||||
|
|
Loading…
Reference in a new issue