From 08cd11e3c6cbc2a538c7d0be8d1ff7661d2f68b2 Mon Sep 17 00:00:00 2001 From: chyroc Date: Mon, 21 Oct 2019 09:28:16 +0800 Subject: [PATCH] fix-test --- errors.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/errors.go b/errors.go index 8cb0c743..c17f572b 100644 --- a/errors.go +++ b/errors.go @@ -83,7 +83,9 @@ func (errs Errors) Is(target error) bool { } continue } - return errors.Is(err, target) + if errors.Is(err, target) { + return true + } } return false