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
|
||||
}
|
||||
|
||||
if len(info.Result) != 1 {
|
||||
err = errors.New("API mismatch")
|
||||
if len(info.Result) == 0 {
|
||||
err = errors.New("empty response")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user