mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-06-17 09:49:52 +00:00
chore: disable update check error msg
This commit is contained in:
parent
af530f8943
commit
a5e27385c8
@ -20,11 +20,7 @@ type releaseInfo struct {
|
|||||||
|
|
||||||
func checkUpdate() {
|
func checkUpdate() {
|
||||||
info, err := fetchLatestRelease()
|
info, err := fetchLatestRelease()
|
||||||
if err != nil {
|
if err == nil && info.TagName != appVersion {
|
||||||
logrus.WithFields(logrus.Fields{
|
|
||||||
"error": err,
|
|
||||||
}).Warn("Failed to check for updates")
|
|
||||||
} else if info.TagName != appVersion {
|
|
||||||
logrus.WithFields(logrus.Fields{
|
logrus.WithFields(logrus.Fields{
|
||||||
"version": info.TagName,
|
"version": info.TagName,
|
||||||
"url": info.URL,
|
"url": info.URL,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user