()
| 904 | } |
| 905 | |
| 906 | func (b *batch) isEmpty() bool { |
| 907 | if len(b.childBatches) != 0 { |
| 908 | // Presence of child batches indicates a non-empty batch even |
| 909 | // if the child batches themselves are empty. This is so that |
| 910 | // collection creation/deletions will work. |
| 911 | return false |
| 912 | } |
| 913 | |
| 914 | return b.Len() <= 0 |
| 915 | } |
no test coverage detected