1
0

More than one result is legit

This commit is contained in:
dump_stack() 2023-05-11 21:29:15 +00:00
parent f6cb2d8d12
commit 0594b0ea60
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -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
}