[go: nahoru, domu]

Skip to content

Commit

Permalink
allow 404 when deleting (geohot#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregjhogan committed Nov 30, 2020
1 parent 56c034d commit e070c3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func remote_delete(remote string) error {
return err
}
defer resp.Body.Close()
if resp.StatusCode != 204 {
if resp.StatusCode != 204 && resp.StatusCode != 404 {
return fmt.Errorf("remote_delete: wrong status code %d", resp.StatusCode)
}
return nil
Expand Down

0 comments on commit e070c3d

Please sign in to comment.