(ctx context.Context)
| 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. |
| 229 | s, err := c.db.GetLastUpdateCheck(dbauthz.AsSystemRestricted(ctx)) |
| 230 | if err != nil { |
| 231 | return r, err |
| 232 | } |
| 233 | return r, json.Unmarshal([]byte(s), &r) |
| 234 | } |
| 235 | |
| 236 | func (c *Checker) Close() error { |
| 237 | c.cancel() |
no test coverage detected