Skip to content

Commit

Permalink
chore: fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rxnew committed Feb 18, 2024
1 parent 8f9e1ff commit b37eda6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dockertestx/prism.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (f *PrismFactory) ready(p *Pool, s *state) error {
return fmt.Errorf("invalid heath check path: %w", err)
}
return p.Pool.Retry(func() error {
out, err := http.Get(u)
out, err := http.Get(u) // #nosec G107
if err != nil {
return err
}
Expand Down
3 changes: 2 additions & 1 deletion dockertestx/prism_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ func TestPool_NewPrism(t *testing.T) {

u, err := url.JoinPath(endpoint, "books")
require.NoError(t, err)
resp, err := http.Get(u)
resp, err := http.Get(u) // #nosec G107
require.NoError(t, err)
defer resp.Body.Close()
assert.Equal(t, http.StatusOK, resp.StatusCode)
}

0 comments on commit b37eda6

Please sign in to comment.