diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-02-22 12:43:48 -0600 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-02-23 09:32:42 -0600 |
commit | ba0d27fe940fc120774c331492a849684ff1f9ad (patch) | |
tree | 10e5b84b1eabe8f1fae6c85ef2502e65f8c73443 /lib | |
parent | ec5a74ecfa4cf5f8a6b3b66526d614d71b192105 (diff) | |
download | gitlab-ce-ba0d27fe940fc120774c331492a849684ff1f9ad.tar.gz |
Update rubocop and rubocop-rspec and regenerate .rubocop_todo.yml
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/o_auth/user.rb | 9 | ||||
-rw-r--r-- | lib/gitlab/seeder.rb | 2 |
2 files changed, 4 insertions, 7 deletions
diff --git a/lib/gitlab/o_auth/user.rb b/lib/gitlab/o_auth/user.rb index 96ed20af918..87af76cc122 100644 --- a/lib/gitlab/o_auth/user.rb +++ b/lib/gitlab/o_auth/user.rb @@ -29,12 +29,9 @@ module Gitlab def save(provider = 'OAuth') unauthorized_to_create unless gl_user - if needs_blocking? - gl_user.save! - gl_user.block - else - gl_user.save! - end + gl_user.save! + + gl_user.block if needs_blocking? log.info "(#{provider}) saving user #{auth_hash.email} from login with extern_uid => #{auth_hash.uid}" gl_user diff --git a/lib/gitlab/seeder.rb b/lib/gitlab/seeder.rb index 6fb0be493e8..b7f825e8284 100644 --- a/lib/gitlab/seeder.rb +++ b/lib/gitlab/seeder.rb @@ -18,7 +18,7 @@ def Notify.deliver_later self end eos - eval(code) # rubocop:disable Lint/Eval + eval(code) # rubocop:disable Security/Eval end end end |