Is returns whether the provided error equals this error.
(target error)
| 1539 | |
| 1540 | // Is returns whether the provided error equals this error. |
| 1541 | func (r *RateLimitError) Is(target error) bool { |
| 1542 | var v *RateLimitError |
| 1543 | if !errors.As(target, &v) { |
| 1544 | return false |
| 1545 | } |
| 1546 | |
| 1547 | return r.Rate == v.Rate && |
| 1548 | r.Message == v.Message && |
| 1549 | compareHTTPResponse(r.Response, v.Response) |
| 1550 | } |
| 1551 | |
| 1552 | // AcceptedError occurs when GitHub returns 202 Accepted response with an |
| 1553 | // empty body, which means a job was scheduled on the GitHub side to process |
nothing calls this directly
no test coverage detected