Skip to content

Commit 9b209f5

Browse files
committed
Only return volumes that have non-zero space
1 parent 7abd671 commit 9b209f5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/com/nordstrom/common/file/VolumeInfo.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ public static List<VolumeProps> getVolumeProps() throws IOException {
4141
String file = matcher.group(2);
4242
String type = matcher.group(3);
4343
String[] opts = matcher.group(4).split(",");
44-
propsList.add(new VolumeProps(spec, file, type, opts));
44+
VolumeProps props = new VolumeProps(spec, file, type, opts);
45+
if (props.size > 0L) {
46+
propsList.add(props);
47+
}
4548
}
4649
}
4750
}

0 commit comments

Comments
 (0)