Fix linter warning

This commit is contained in:
Daniel 2023-09-12 16:43:47 +02:00
parent c259c5dea5
commit f7b8e4e7c3

View file

@ -116,7 +116,7 @@ func (n *Notifier) Send(ctx context.Context, m *Message) error {
if err != nil {
return fmt.Errorf("failed to send message: %w", err)
}
defer resp.Body.Close() //nolint:errcheck
defer resp.Body.Close() //nolint:errcheck,gosec
switch resp.StatusCode {
case http.StatusOK, http.StatusCreated, http.StatusNoContent, http.StatusAccepted:
return nil