mirror of
https://github.com/safing/portbase
synced 2025-04-07 19:19:09 +00:00
Fix linter warning
This commit is contained in:
parent
c259c5dea5
commit
f7b8e4e7c3
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue