Skip to content

Commit 5d2dec8

Browse files
committed
Fix update failing with error if already on latest
1 parent 3f725f6 commit 5d2dec8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/runners/update/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func fetchUpdater(version, channel string) (*updater.Updater, *updater.Info, err
7070
return nil, nil, locale.WrapInputError(err, "err_update_fetch", "Could not retrieve update information, please verify that '{{.V0}}' is a valid channel.", channel)
7171
}
7272

73-
if info == nil {
73+
if info == nil && version == "" { // if version is empty then we should always have some info
7474
return nil, nil, locale.NewInputError("err_update_fetch", "Could not retrieve update information, please verify that '{{.V0}}' is a valid channel.", channel)
7575
}
7676

0 commit comments

Comments
 (0)