Skip to content

Commit 7935ad7

Browse files
committed
Use RawShard.isEmpty()
1 parent 28a987a commit 7935ad7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/janelia/saalfeldlab/n5/shard/DefaultDatasetAccess.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ private ReadData deleteBlockRecursive(
428428
if (modifiedElementData == null) {
429429
// The DataBlock or nested shard was removed.
430430
// Check whether this shard becomes empty.
431-
if (shard.index().allElementsNull()) {
431+
if (shard.isEmpty()) {
432432
// This shard is empty and should be removed.
433433
return null;
434434
}

0 commit comments

Comments
 (0)