Skip to content

Commit

Permalink
Remove useless try/catch/throw codes
Browse files Browse the repository at this point in the history
Because this is completly useless.
  • Loading branch information
soullivaneuh committed May 18, 2016
1 parent 15e5251 commit ada81b7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions Security/Handler/AclSecurityHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,6 @@ public function isGranted(AdminInterface $admin, $attributes, $object = null)
return $this->authorizationChecker->isGranted($this->superAdminRoles) || $this->authorizationChecker->isGranted($attributes, $object);
} catch (AuthenticationCredentialsNotFoundException $e) {
return false;
} catch (\Exception $e) {
throw $e;
}
}

Expand Down
2 changes: 0 additions & 2 deletions Security/Handler/RoleSecurityHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ public function isGranted(AdminInterface $admin, $attributes, $object = null)
|| $this->authorizationChecker->isGranted($attributes, $object);
} catch (AuthenticationCredentialsNotFoundException $e) {
return false;
} catch (\Exception $e) {
throw $e;
}
}

Expand Down

0 comments on commit ada81b7

Please sign in to comment.