ソースを参照

Removing unnecessary return

As the natural flow are returning the same response, only the final return statement are necessary
Cauan Cabral 8 年 前
コミット
78908b34f2
1 ファイル変更0 行追加2 行削除
  1. 0 2
      src/Controller/Component/AuthComponent.php

+ 0 - 2
src/Controller/Component/AuthComponent.php

@@ -392,8 +392,6 @@ class AuthComponent extends Component
                 $this->_config['ajaxLogin'],
                 $this->RequestHandler->ajaxLayout
             );
-
-            return $response->withStatus(403);
         }
 
         return $response->withStatus(403);