Skip to content

Commit

Permalink
ARCO-149: revert defer func changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pawellewandowski98 committed Aug 9, 2024
1 parent ec1eca6 commit 06278af
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/metamorph/callbacker.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,7 @@ func (p *Callbacker) sendCallback(logger *slog.Logger, tx *store.StoreData, call
continue
}

defer func() {
_ = response.Body.Close()
}()
defer response.Body.Close()

// if callback was sent successfully we stop here
if response.StatusCode == http.StatusOK {
Expand Down

0 comments on commit 06278af

Please sign in to comment.