提交 0302410a 编写于 作者: J Jingwen Owen Ou

Don't prompt for update if it's in dev

上级 4dfb4c58
......@@ -21,7 +21,11 @@ var (
)
func NewUpdater() *Updater {
return &Updater{Host: github.GitHubHost, CurrentVersion: Version}
version := os.Getenv("GH_VERSION")
if version == "" {
version = Version
}
return &Updater{Host: github.GitHubHost, CurrentVersion: version}
}
type Updater struct {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册