mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Remove redundant null check in PluginCommand (#853)
This commit is contained in:
committed by
Dylan K. Taylor
parent
b867cf4c91
commit
9e2b26de23
@ -70,7 +70,7 @@ class PluginCommand extends Command implements PluginIdentifiableCommand{
|
|||||||
* @param CommandExecutor $executor
|
* @param CommandExecutor $executor
|
||||||
*/
|
*/
|
||||||
public function setExecutor(CommandExecutor $executor){
|
public function setExecutor(CommandExecutor $executor){
|
||||||
$this->executor = ($executor != null) ? $executor : $this->owningPlugin;
|
$this->executor = $executor;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user