Skip to content

Commit fc2d777

Browse files
committed
fix golang lint error
1 parent f5c95f9 commit fc2d777

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/terraform_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,9 @@ func testAppAccessibleFromALB(t *testing.T, terraformOptions *terraform.Options,
335335
for i := 0; i < maxRetries; i++ {
336336
resp, err := client.Get(url)
337337
if err == nil {
338-
defer resp.Body.Close()
338+
defer func() {
339+
_ = resp.Body.Close()
340+
}()
339341

340342
// Check if we get a successful response (2xx or 3xx)
341343
if resp.StatusCode >= 200 && resp.StatusCode < 400 {

0 commit comments

Comments
 (0)