Skip to content

Commit cb04629

Browse files
committed
fixup! Only download artifacts which aren't present
1 parent f9f3a1d commit cb04629

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev-tools/mage/downloads/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func downloadFile(downloadRequest *downloadRequest) error {
4646
req.Header.Add("If-Modified-Since", stat.ModTime().Format(http.TimeFormat))
4747
}
4848

49-
resp, err := http.DefaultClient.Do(req) //nolint:bodyclose // we do close this outside of the function
49+
resp, err := http.DefaultClient.Do(req)
5050
if err != nil {
5151
retryCount++
5252
return fmt.Errorf("downloading file %s: %w", downloadRequest.URL, err)

0 commit comments

Comments
 (0)