Skip to content

Commit

Permalink
Removed redundant null check
Browse files Browse the repository at this point in the history
  • Loading branch information
SirEndii committed Oct 6, 2024
1 parent 9a8825f commit b969a1b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ public static List<Object> listCells(IGridNode node) {
if (!iterator.hasNext()) return items;
while (iterator.hasNext()) {
IStorageProvider entity = iterator.next().getService(IStorageProvider.class);
if (entity == null || !(entity instanceof DriveBlockEntity drive))
if (!(entity instanceof DriveBlockEntity drive))
continue;

InternalInventory inventory = drive.getInternalInventory();
Expand Down

0 comments on commit b969a1b

Please sign in to comment.