Skip to content

Commit e8adc49

Browse files
authored
Remove unnecessary condition part (#6439)
1 parent e76f03c commit e8adc49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/inventory/ArmorInventory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function setBoots(Item $boots) : void{
8282
}
8383

8484
private function validate(Inventory $inventory, Item $item, int $slot) : ?TransactionValidationException{
85-
if($item instanceof Armor && $item->getArmorSlot() === $slot){
85+
if($item instanceof Armor){
8686
if($item->getArmorSlot() !== $slot){
8787
return new TransactionValidationException("Armor item is in wrong slot");
8888
}

0 commit comments

Comments
 (0)