MCPcopy Index your code
hub / github.com/coder/slog / errorsIsAny

Function errorsIsAny

internal/syncwriter/syncwriter.go:76–83  ·  view source on GitHub ↗
(err error, errs ...error)

Source from the content-addressed store, hash-verified

74}
75
76func errorsIsAny(err error, errs ...error) bool {
77 for _, e := range errs {
78 if errors.Is(err, e) {
79 return true
80 }
81 }
82 return false
83}

Callers 2

Test_errorsIsAnyFunction · 0.85
SyncMethod · 0.85

Calls

no outgoing calls

Tested by 1

Test_errorsIsAnyFunction · 0.68