浏览代码

Remove useless try/catch/throw codes

Because this is completly useless.
Sullivan SENECHAL 9 年之前
父节点
当前提交
ada81b7abc
共有 2 个文件被更改,包括 0 次插入4 次删除
  1. 0 2
      Security/Handler/AclSecurityHandler.php
  2. 0 2
      Security/Handler/RoleSecurityHandler.php

+ 0 - 2
Security/Handler/AclSecurityHandler.php

@@ -137,8 +137,6 @@ class AclSecurityHandler implements AclSecurityHandlerInterface
             return $this->authorizationChecker->isGranted($this->superAdminRoles) || $this->authorizationChecker->isGranted($attributes, $object);
         } catch (AuthenticationCredentialsNotFoundException $e) {
             return false;
-        } catch (\Exception $e) {
-            throw $e;
         }
     }
 

+ 0 - 2
Security/Handler/RoleSecurityHandler.php

@@ -67,8 +67,6 @@ class RoleSecurityHandler implements SecurityHandlerInterface
                 || $this->authorizationChecker->isGranted($attributes, $object);
         } catch (AuthenticationCredentialsNotFoundException $e) {
             return false;
-        } catch (\Exception $e) {
-            throw $e;
         }
     }