NotNil checks if there is at least one error inside the BatchError.
()
| 35 | |
| 36 | // NotNil checks if there is at least one error inside the BatchError. |
| 37 | func (be *BatchError) NotNil() bool { |
| 38 | be.lock.RLock() |
| 39 | defer be.lock.RUnlock() |
| 40 | |
| 41 | return len(be.errs) > 0 |
| 42 | } |
no outgoing calls