Unnecessary null check before instanceof

This commit is contained in:
thatsIch
2015-03-26 11:22:31 +01:00
parent d8f452b665
commit d81eb1fe2d
4 changed files with 7 additions and 7 deletions
@@ -880,7 +880,7 @@ public class PartCable extends AEBasePart implements IPartCable
for ( ForgeDirection dir : ForgeDirection.VALID_DIRECTIONS )
{
IPart p = this.getHost().getPart( dir );
if ( p != null && p instanceof IGridHost )
if ( p instanceof IGridHost )
{
IGridHost igh = ( IGridHost ) p;
AECableType type = igh.getCableConnectionType( dir.getOpposite() );