From 7b0c9459589b0cad11b9aadfb745e3d93f535055 Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Mon, 26 Jun 2023 15:47:12 +0800 Subject: [PATCH] chore: use bytes.Equal(ae.Raw, v.Raw) instead --- github/github.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/github.go b/github/github.go index 34a27282f0f..1b41ffdc0ef 100644 --- a/github/github.go +++ b/github/github.go @@ -1052,7 +1052,7 @@ func (ae *AcceptedError) Is(target error) bool { if !ok { return false } - return bytes.Compare(ae.Raw, v.Raw) == 0 + return bytes.Equal(ae.Raw, v.Raw) } // AbuseRateLimitError occurs when GitHub returns 403 Forbidden response with the