(name string)
| 75 | } |
| 76 | |
| 77 | func (c *liveFixtureRepositoryClient) delete(name string) error { |
| 78 | path := fmt.Sprintf("repos/%s/%s", url.PathEscape(c.org), url.PathEscape(name)) |
| 79 | err := c.apiClient.Do(http.MethodDelete, path, nil, nil) |
| 80 | var httpErr *ghAPI.HTTPError |
| 81 | if errors.As(err, &httpErr) && httpErr.StatusCode == http.StatusNotFound { |
| 82 | return nil |
| 83 | } |
| 84 | return err |
| 85 | } |
| 86 | |
| 87 | type roundTripperFunc func(*http.Request) (*http.Response, error) |
| 88 |