mirror of
https://github.com/hrfee/jfa-go.git
synced 2026-01-18 16:47:42 +01:00
dont log updates when disabled
This commit is contained in:
@@ -467,7 +467,7 @@ func (app *appContext) checkForUpdates() {
|
||||
if status != 200 || err != nil {
|
||||
if err != nil && strings.Contains(err.Error(), "strconv.ParseInt") {
|
||||
app.err.Println("No new updates available.")
|
||||
} else {
|
||||
} else if status != -1 { // -1 means updates disabled, we don't need to log it.
|
||||
app.err.Printf("Failed to get latest tag (%d): %v", status, err)
|
||||
}
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user