Skip to content

Commit 283b0a4

Browse files
fix: lint error
1 parent 3e2d6c9 commit 283b0a4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/utils/license-helper.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ func DownloadFile(destination, src string) error {
3030
_ = Body.Close()
3131
}(resp.Body)
3232
size, err := io.Copy(file, resp.Body)
33+
if err != nil {
34+
log.Errorf("error while copying file [" + err.Error() + "]")
35+
return err
36+
}
3337
defer func(file *os.File) {
3438
_ = file.Close()
3539
}(file)

0 commit comments

Comments
 (0)