-
Notifications
You must be signed in to change notification settings - Fork 187
Open
Description
The comment does not correspond to the logic of the function.
Which should be correct, comment or code?
go-selfupdate/selfupdate/selfupdate.go
Lines 120 to 131 in e1c03e3
| // WantUpdate returns boolean designating if an update is desired. If the app's version | |
| // is `dev` WantUpdate will return false. If u.ForceCheck is true or cktime is after now | |
| // WantUpdate will return true. | |
| func (u *Updater) WantUpdate() bool { | |
| if u.CurrentVersion == "dev" || (!u.ForceCheck && u.NextUpdate().After(time.Now())) { | |
| return false | |
| } | |
| return true | |
| } | |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels