MCPcopy Index your code
hub / github.com/coder/coder / notifyIfNewer

Method notifyIfNewer

coderd/updatecheck/updatecheck.go:221–225  ·  view source on GitHub ↗
(prev, next Result)

Source from the content-addressed store, hash-verified

219}
220
221func (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
227func (c *Checker) lastUpdateCheck(ctx context.Context) (r Result, err error) {
228 // nolint:gocritic // Getting the last update check is a system function.

Callers 1

startMethod · 0.95

Calls 2

CompareMethod · 0.80
NotifyMethod · 0.45

Tested by

no test coverage detected