mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-07 18:41:47 +00:00
Remove redundant null check in PluginCommand (#853)
This commit is contained in:
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user