Skip to content

Commit

Permalink
Remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
alwaysblank committed Feb 6, 2023
1 parent 0eb07c9 commit b4dbfd4
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/Brief.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,17 +289,7 @@ public function getAliasedKey(string $alias)
return false;
}

$authoritative = $this->collapseAliasChain($alias);

// Check resolved value for allowable keys
if (false === $this::isKeyAllowed($authoritative)) {
$this->log('ProtectedKey', 'This key is protected and cannot be used.',
['key' => $authoritative, 'protected_keys' => self::$protected]);

return false;
}

return $authoritative;
return $this->collapseAliasChain($alias);
}

/**
Expand Down

0 comments on commit b4dbfd4

Please sign in to comment.