MCPcopy
hub / github.com/crowdsecurity/crowdsec / MaskNotFound

Function MaskNotFound

pkg/database/ent/ent.go:236–241  ·  view source on GitHub ↗

MaskNotFound masks not found error.

(err error)

Source from the content-addressed store, hash-verified

234
235// MaskNotFound masks not found error.
236func MaskNotFound(err error) error {
237 if IsNotFound(err) {
238 return nil
239 }
240 return err
241}
242
243// NotSingularError returns when trying to fetch a singular entity and more then one was found in the database.
244type NotSingularError struct {

Callers

nothing calls this directly

Calls 1

IsNotFoundFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…