chore: fix low hanging lint issues (#9253)

This commit is contained in:
Kayla Washburn
2023-08-22 12:32:37 -06:00
committed by GitHub
parent 306615c674
commit 697b0283c5
3 changed files with 4 additions and 4 deletions

View File

@ -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)