Skip to content

Commit

Permalink
notify: close body
Browse files Browse the repository at this point in the history
  • Loading branch information
USA-RedDragon committed Feb 24, 2024
1 parent 38dddbd commit df5bcfd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/notify.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ func runNotify(cmd *cobra.Command, _ []string) error {
if err != nil {
return err
}
defer resp.Body.Close()

if resp.StatusCode != http.StatusOK {
return fmt.Errorf("error notifying daemon: %s", resp.Status)
Expand Down

0 comments on commit df5bcfd

Please sign in to comment.