Skip to content

Commit 319ac6b

Browse files
committed
Using io.Copy to io.Discard in check requests instead of io.ReadAll.
1 parent 87dc9e3 commit 319ac6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/scanner.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func (cs *ContainerScanner) ScanContainer(account string, containerName string,
7272
fmt.Printf("%s[-] Error while fetching URL: '%s'%s\n", Red, err, Reset)
7373
}
7474
} else {
75-
_, _ = io.ReadAll(checkResp.Body)
75+
io.Copy(io.Discard, checkResp.Body)
7676
checkResp.Body.Close()
7777

7878
checkStatusCode := checkResp.StatusCode

0 commit comments

Comments
 (0)