This commit is contained in:
Owain G. Ainsworth 2013-10-25 18:23:53 +01:00
parent b3b8b37855
commit fedafbdd49
2 changed files with 14 additions and 14 deletions

View file

@ -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")