Skip to content

Commit fd1c4c4

Browse files
committed
Fixed linter warning
if err != nil { ~~~~~~~~~~ Impossible error condition `nil != nil`
1 parent 03b09ab commit fd1c4c4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

internal/arduino/cores/packagemanager/profiles.go

-4
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,6 @@ func (pmb *Builder) installMissingProfilePlatform(platformRef *sketch.ProfilePla
102102
indexesToDownload = append(indexesToDownload, platformRef.PlatformIndexURL)
103103
}
104104
for _, indexURL := range indexesToDownload {
105-
if err != nil {
106-
taskCB(&rpc.TaskProgress{Name: tr("Error downloading %s", indexURL)})
107-
return &cmderrors.FailedDownloadError{Message: tr("Error downloading %s", indexURL), Cause: err}
108-
}
109105
indexResource := resources.IndexResource{URL: indexURL}
110106
if err := indexResource.Download(tmpPmb.IndexDir, downloadCB); err != nil {
111107
taskCB(&rpc.TaskProgress{Name: tr("Error downloading %s", indexURL)})

0 commit comments

Comments
 (0)