gitlab.com/evatix-go/core@v1.3.55/iserror/AnyEmpty.go (about)

     1  package iserror
     2  
     3  func AnyEmpty(errorItems ...error) bool {
     4  	if len(errorItems) == 0 {
     5  		return true
     6  	}
     7  
     8  	for _, err := range errorItems {
     9  		if err == nil {
    10  			return true
    11  		}
    12  	}
    13  
    14  	return false
    15  }