Skip to content

Commit

Permalink
Use bytes.Equal instead of bytes.Compare (#2820)
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill authored Jun 26, 2023
1 parent bed40d1 commit cd0f4b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd0f4b9

Please sign in to comment.