CheckForNewUpdate checks if there is an available update
(onFinish func(string, error) error, userRequested bool)
| 140 | |
| 141 | // CheckForNewUpdate checks if there is an available update |
| 142 | func (u *Updater) CheckForNewUpdate(onFinish func(string, error) error, userRequested bool) { |
| 143 | if !userRequested && u.skipUpdateCheck() { |
| 144 | return |
| 145 | } |
| 146 | |
| 147 | newVersion, err := u.checkForNewUpdate() |
| 148 | if err = onFinish(newVersion, err); err != nil { |
| 149 | u.Log.Error(err) |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | func (u *Updater) skipUpdateCheck() bool { |
| 154 | // will remove the check for windows after adding a manifest file asking for |
nothing calls this directly
no test coverage detected