MCPcopy
hub / github.com/cortexlabs/cortex / HasError

Function HasError

pkg/lib/errors/multi.go:50–57  ·  view source on GitHub ↗
(errs []error)

Source from the content-addressed store, hash-verified

48}
49
50func HasError(errs []error) bool {
51 for _, err := range errs {
52 if err != nil {
53 return true
54 }
55 }
56 return false
57}
58
59func AreAllErrors(errs []error) bool {
60 for _, err := range errs {

Callers 13

NewForFileFunction · 0.92
ExtractAPIConfigsFunction · 0.92
StructFunction · 0.92
StructFromStringMapFunction · 0.92
ParseYAMLFileFunction · 0.92
ParseYAMLBytesFunction · 0.92
DeleteEvictedPodsFunction · 0.92
readCLIConfigFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected