Skip to content

Commit 9c9434a

Browse files
committed
roachtest: fix close body
Previously, we were attempting to close the body on a nil response. This caused a panic. On an error there is no response, hence no body to close. Epic: None Release note: None
1 parent 314510c commit 9c9434a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

pkg/cmd/roachtest/roachtestutil/profile.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,6 @@ func getProfileWithTimeout(
340340
resp, err := client.Get(ctx, url)
341341
if err != nil {
342342
latestError = err
343-
resp.Body.Close()
344343
continue
345344
}
346345

0 commit comments

Comments
 (0)