mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-12 16:59:44 +00:00
Permission: remove dead code from loadPermission()
This commit is contained in:
parent
e198c8fa8b
commit
43ebb23085
@ -112,12 +112,7 @@ class Permission{
|
||||
$desc = null;
|
||||
$children = [];
|
||||
if(isset($data["default"])){
|
||||
$value = Permission::getByName($data["default"]);
|
||||
if($value !== null){
|
||||
$default = $value;
|
||||
}else{
|
||||
throw new \InvalidStateException("'default' key contained unknown value");
|
||||
}
|
||||
$default = Permission::getByName($data["default"]);
|
||||
}
|
||||
|
||||
if(isset($data["children"])){
|
||||
|
Loading…
x
Reference in New Issue
Block a user