From 0594b0ea60be85f60441e67ae362a53a704bb075 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Thu, 11 May 2023 21:29:15 +0000 Subject: [PATCH] More than one result is legit --- distro/debian/snapshot/mr/mr.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distro/debian/snapshot/mr/mr.go b/distro/debian/snapshot/mr/mr.go index 198d9ca..5547c1f 100644 --- a/distro/debian/snapshot/mr/mr.go +++ b/distro/debian/snapshot/mr/mr.go @@ -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 }