// OrNilIfEmpty Return the composite error itself, or nil if it contains no errors
OrNilIfEmpty Return the composite error itself, or nil if it contains no errors
// OrNilIfEmpty Return the composite error itself or nil if it contains no errors
func (e *CompositeError) OrNilIfEmpty() error {
	if len(e.errors) > 0 {
		return e
	}
	return nil
}
func ( e * CompositeError ) OrNilIfEmpty ( ) error { if len ( e . errors ) > 0 { return e } return nil }
OrNilIfEmpty Return the composite error itself, or nil if it contains no errors
OrNilIfEmpty Return the composite error itself or nil if it contains no errors