We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent caa282f commit f7b4588Copy full SHA for f7b4588
pkg/cmd/repo/delete/http.go
@@ -25,13 +25,8 @@ func deleteRepo(client *http.Client, repo ghrepo.Interface) error {
25
}
26
defer resp.Body.Close()
27
28
- err = api.HandleHTTPError(resp)
29
-
30
- if resp.StatusCode == 403 {
31
- return fmt.Errorf(`%w
32
-Try authorizing the "delete_repo" scope with "gh auth refresh -s delete_repo".`, err)
33
- } else if resp.StatusCode > 299 {
34
- return err
+ if resp.StatusCode > 299 {
+ return api.HandleHTTPError(resp)
35
36
37
return nil
0 commit comments