summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-07-27 15:25:21 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-07-27 15:25:21 +0200
commit719eeb0f49e4200c345ba555b343a65227a3258e (patch)
treed483c3caa5f42558a99974fb6904bf786ed9d61f /config
parent5f66d1de09d52988cfa0b519e61914713015c75c (diff)
downloadgitlab-ce-719eeb0f49e4200c345ba555b343a65227a3258e.tar.gz
Fix rubocop offense in warden initializers
Diffstat (limited to 'config')
-rw-r--r--config/initializers/warden.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/initializers/warden.rb b/config/initializers/warden.rb
index fcd52e63141..3d632232930 100644
--- a/config/initializers/warden.rb
+++ b/config/initializers/warden.rb
@@ -8,8 +8,8 @@ Rails.application.configure do |config|
when :set_user
Gitlab::Auth::Activity.new(user, opts).user_authenticated!
Gitlab::Auth::Activity.new(user, opts).user_session_override!
- when :fetch
- # no-op
+ when :fetch # rubocop:disable Lint/EmptyWhen
+ # We ignore session fetch events
else
Gitlab::Auth::Activity.new(user, opts).user_session_override!
end