提交 6faecd18 编写于 作者: J Jingwen Owen Ou

Don't return an error if there's no newer version

上级 8f797c11
......@@ -90,7 +90,7 @@ func (updater *Updater) PromptForUpdate() (err error) {
func (updater *Updater) Update() (err error) {
releaseName, version := updater.latestReleaseNameAndVersion()
if version == "" {
err = fmt.Errorf("There is no newer version of gh available.")
fmt.Println("There is no newer version of gh available.")
return
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册