Skip to content

Commit 7b0c945

Browse files
committed
chore: use bytes.Equal(ae.Raw, v.Raw) instead
1 parent 1e7c685 commit 7b0c945

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

github/github.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ func (ae *AcceptedError) Is(target error) bool {
10521052
if !ok {
10531053
return false
10541054
}
1055-
return bytes.Compare(ae.Raw, v.Raw) == 0
1055+
return bytes.Equal(ae.Raw, v.Raw)
10561056
}
10571057

10581058
// AbuseRateLimitError occurs when GitHub returns 403 Forbidden response with the

0 commit comments

Comments
 (0)