Skip to content

Commit bbc531d

Browse files
ashmckenziePatrick Bajao
andcommitted
Apply 1 suggestion(s) to 1 file(s)
Co-authored-by: Patrick Bajao <[email protected]>
1 parent bd1842f commit bbc531d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

internal/gitlabnet/gitauditevent/client.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@ func (c *Client) Audit(ctx context.Context, username string, action commandargs.
5353
if err != nil {
5454
return err
5555
}
56-
defer func() {
57-
if err := response.Body.Close(); err != nil {
58-
_ = fmt.Errorf("unable to close response body: %v", err)
59-
}
60-
}()
56+
defer response.Body.Close() //nolint:errcheck
6157
return nil
6258
}

0 commit comments

Comments
 (0)