Skip to content

Commit b969a1b

Browse files
committed
Removed redundant null check
1 parent 9a8825f commit b969a1b

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/de/srendi/advancedperipherals/common/addons/appliedenergistics

1 file changed

+1
-1
lines changed

src/main/java/de/srendi/advancedperipherals/common/addons/appliedenergistics/AppEngApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ public static List<Object> listCells(IGridNode node) {
563563
if (!iterator.hasNext()) return items;
564564
while (iterator.hasNext()) {
565565
IStorageProvider entity = iterator.next().getService(IStorageProvider.class);
566-
if (entity == null || !(entity instanceof DriveBlockEntity drive))
566+
if (!(entity instanceof DriveBlockEntity drive))
567567
continue;
568568

569569
InternalInventory inventory = drive.getInternalInventory();

0 commit comments

Comments
 (0)