gitlab.com/evatix-go/core@v1.3.55/iserror/AnyDefined.go (about) 1 package iserror 2 3 func AnyDefined(errorItems ...error) bool { 4 if len(errorItems) == 0 { 5 return false 6 } 7 8 for _, err := range errorItems { 9 if err != nil { 10 return true 11 } 12 } 13 14 return false 15 }