MCPcopy
hub / github.com/CodisLabs/codis / MustNoError

Function MustNoError

pkg/utils/assert/assert.go:15–20  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

13}
14
15func MustNoError(err error) {
16 if err == nil {
17 return
18 }
19 log.PanicError(err, "error happens, assertion failed")
20}

Callers

nothing calls this directly

Calls 1

PanicErrorMethod · 0.80

Tested by

no test coverage detected