diff options
author | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-06-06 00:13:17 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-06-28 21:58:31 +0900 |
commit | e9734c6df33dba7ab89d4c575ace3a508c5da64b (patch) | |
tree | c9397193b50c117dbaf05f6f322ee372bd543c71 | |
parent | 8026f47d67546d48139cb35a0dc16bbac47b1bb7 (diff) | |
download | gitlab-ce-e9734c6df33dba7ab89d4c575ace3a508c5da64b.tar.gz |
Resolve static analysis
-rw-r--r-- | spec/support/matchers/access_matchers_for_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/matchers/access_matchers_for_controller.rb b/spec/support/matchers/access_matchers_for_controller.rb index 4da10247801..14500201a59 100644 --- a/spec/support/matchers/access_matchers_for_controller.rb +++ b/spec/support/matchers/access_matchers_for_controller.rb @@ -49,7 +49,7 @@ module AccessMatchersForController user = emulate_user(role, @membership) begin action.call(user) - rescue Exception => e + rescue # Ignore internal exceptions which will be caused in the controller # In such cases, response.status will be 200. end @@ -70,7 +70,7 @@ module AccessMatchersForController user = emulate_user(role, @membership) begin action.call(user) - rescue Exception => e + rescue # Ignore internal exceptions which will be caused in the controller # In such cases, response.status will be 200. end |