Unverified Commit 0d86bf5e authored by Cristian Maglie's avatar Cristian Maglie Committed by GitHub

[skip-changelog] Fixed linter warning (#2558)

if err != nil {
      ~~~~~~~~~~

Impossible error condition `nil != nil`
parent 03b09ab5
......@@ -102,10 +102,6 @@ func (pmb *Builder) installMissingProfilePlatform(platformRef *sketch.ProfilePla
indexesToDownload = append(indexesToDownload, platformRef.PlatformIndexURL)
}
for _, indexURL := range indexesToDownload {
if err != nil {
taskCB(&rpc.TaskProgress{Name: tr("Error downloading %s", indexURL)})
return &cmderrors.FailedDownloadError{Message: tr("Error downloading %s", indexURL), Cause: err}
}
indexResource := resources.IndexResource{URL: indexURL}
if err := indexResource.Download(tmpPmb.IndexDir, downloadCB); err != nil {
taskCB(&rpc.TaskProgress{Name: tr("Error downloading %s", indexURL)})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment