Skip to content

Commit

Permalink
missed error declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
bgn42 committed Dec 12, 2024
1 parent bd18578 commit b3ab579
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/installer/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -604,8 +604,10 @@ func UpdatePublicIndex(indexPath string, overwrite bool, sparse bool, downloadPd
indexPath = strings.TrimSuffix(Installation.PublicIndexXML.URL, "/") + "/" + PublicIndex
}

var err error

if strings.HasPrefix(indexPath, "http://") || strings.HasPrefix(indexPath, "https://") {
err := utils.CheckConnection(indexPath, 0)
err = utils.CheckConnection(indexPath, 0)
if err != nil && errors.Unwrap(err) == errs.ErrOffline {
return err
}
Expand Down

0 comments on commit b3ab579

Please sign in to comment.