(prev, next Result)
| 219 | } |
| 220 | |
| 221 | func (c *Checker) notifyIfNewer(prev, next Result) { |
| 222 | if (prev.Version == "" && next.Version != "") || semver.Compare(next.Version, prev.Version) > 0 { |
| 223 | c.opts.Notify(next) |
| 224 | } |
| 225 | } |
| 226 | |
| 227 | func (c *Checker) lastUpdateCheck(ctx context.Context) (r Result, err error) { |
| 228 | // nolint:gocritic // Getting the last update check is a system function. |