Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
brianluong committed Dec 19, 2023
1 parent 320d778 commit df53485
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/server/web_server_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ func executeRequest(

result := recorder.Result()
resultBody, _ := io.ReadAll(result.Body)

Check failure on line 337 in internal/server/web_server_e2e_test.go

View workflow job for this annotation

GitHub Actions / Code linting with golangci-lint

File is not `gofmt`-ed with `-s` (gofmt)
defer result.Body.Close()

responseBody, err := jsonrpc.DecodeResponseBody(resultBody)
Expand Down
1 change: 1 addition & 0 deletions internal/server/web_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func TestHandleJSONRPCRequest_Success(t *testing.T) {

result := recorder.Result()
resultBody, _ := io.ReadAll(result.Body)

defer result.Body.Close()

jsonRPCResponse, _ := jsonrpc.DecodeResponseBody(resultBody)
Expand Down

0 comments on commit df53485

Please sign in to comment.