소스 검색

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;
         }
     }