mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
chore: fix low hanging lint issues (#9253)
This commit is contained in:
@ -52,6 +52,7 @@ func TestWorkspaceAgent(t *testing.T) {
|
||||
req.Header.Set(codersdk.SessionTokenHeader, authToken.String())
|
||||
rtr.ServeHTTP(rw, req)
|
||||
|
||||
//nolint:bodyclose // Closed in `t.Cleanup`
|
||||
res := rw.Result()
|
||||
t.Cleanup(func() { _ = res.Body.Close() })
|
||||
require.Equal(t, http.StatusOK, res.StatusCode)
|
||||
|
Reference in New Issue
Block a user