Skip to content

Commit cd0f4b9

Browse files
authored
Use bytes.Equal instead of bytes.Compare (#2820)
1 parent bed40d1 commit cd0f4b9

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)