Update iot_device.go

This commit is contained in:
ctlove0523 2021-03-12 14:36:27 +08:00 committed by GitHub
parent 5294830906
commit 35ccbedd66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,7 @@ ENDFOR:
} }
downloadFlag := CreateHttpClient().DownloadFile(filename, device.fileUrls[filename+FileActionDownload]) downloadFlag := CreateHttpClient().DownloadFile(filename, device.fileUrls[filename+FileActionDownload])
if downloadFlag { if !downloadFlag {
glog.Errorf("down load file { %s } failed", filename) glog.Errorf("down load file { %s } failed", filename)
return false return false
} }