@@ -708,10 +708,10 @@ func (c *Client) checkRateLimitBeforeDo(req *http.Request, rateLimitCategory rat
708708 return nil
709709}
710710
711- // compareHttpResponse returns whether two http.Response objects are equal or not.
711+ // compareHTTPResponse returns whether two http.Response objects are equal or not.
712712// Currently, only StatusCode is checked. This function is used when implementing the
713713// Is(error) bool interface for the custom error types in this package.
714- func compareHttpResponse (r1 , r2 * http.Response ) bool {
714+ func compareHTTPResponse (r1 , r2 * http.Response ) bool {
715715 if r1 == nil && r2 == nil {
716716 return true
717717 }
@@ -761,7 +761,7 @@ func (r *ErrorResponse) Is(target error) bool {
761761 }
762762
763763 if r .Message != v .Message || (r .DocumentationURL != v .DocumentationURL ) ||
764- ! compareHttpResponse (r .Response , v .Response ) {
764+ ! compareHTTPResponse (r .Response , v .Response ) {
765765 return false
766766 }
767767
@@ -827,7 +827,7 @@ func (r *RateLimitError) Is(target error) bool {
827827
828828 return r .Rate == v .Rate &&
829829 r .Message == v .Message &&
830- compareHttpResponse (r .Response , v .Response )
830+ compareHTTPResponse (r .Response , v .Response )
831831}
832832
833833// AcceptedError occurs when GitHub returns 202 Accepted response with an
@@ -881,7 +881,7 @@ func (r *AbuseRateLimitError) Is(target error) bool {
881881
882882 return r .Message == v .Message &&
883883 r .RetryAfter == v .RetryAfter &&
884- compareHttpResponse (r .Response , v .Response )
884+ compareHTTPResponse (r .Response , v .Response )
885885}
886886
887887// sanitizeURL redacts the client_secret parameter from the URL which may be
0 commit comments