diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-02-21 17:59:42 -0600 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-02-23 09:31:57 -0600 |
commit | 215228b477e9dae8cf3ba36af767ae12d4328e28 (patch) | |
tree | c293caf0c9e614837b5b195e55af67db690900e2 /app | |
parent | 8924594a3e84f03c363031d0831960ad5ab822dd (diff) | |
download | gitlab-ce-215228b477e9dae8cf3ba36af767ae12d4328e28.tar.gz |
Enable Performance/RedundantBlockCall
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/application_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 5e7af3bff0d..e42e48f87d2 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -181,7 +181,7 @@ class ApplicationController < ActionController::Base end def gitlab_ldap_access(&block) - Gitlab::LDAP::Access.open { |access| block.call(access) } + Gitlab::LDAP::Access.open { |access| yield(access) } end # JSON for infinite scroll via Pager object |