More than one result is legit
This commit is contained in:
parent
f6cb2d8d12
commit
0594b0ea60
@ -160,8 +160,8 @@ func GetInfo(hash string) (info Info, err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(info.Result) != 1 {
|
if len(info.Result) == 0 {
|
||||||
err = errors.New("API mismatch")
|
err = errors.New("empty response")
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user