Remove redundant null check in PluginCommand (#853)

This commit is contained in:
SalmonDE 2017-04-19 18:59:01 +02:00 committed by Dylan K. Taylor
parent b867cf4c91
commit 9e2b26de23

View File

@ -70,7 +70,7 @@ class PluginCommand extends Command implements PluginIdentifiableCommand{
* @param CommandExecutor $executor
*/
public function setExecutor(CommandExecutor $executor){
$this->executor = ($executor != null) ? $executor : $this->owningPlugin;
$this->executor = $executor;
}
/**