mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
UPnP: remove useless 'or false'
This commit is contained in:
parent
b9d3bd22a3
commit
69c54de460
@ -65,7 +65,7 @@ abstract class UPnP{
|
||||
|
||||
try{
|
||||
/** @noinspection PhpUndefinedClassInspection */
|
||||
$com = new \COM("HNetCfg.NATUPnP") or false;
|
||||
$com = new \COM("HNetCfg.NATUPnP");
|
||||
/** @noinspection PhpUndefinedFieldInspection */
|
||||
if($com === false or !is_object($com->StaticPortMappingCollection)){
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user