summaryrefslogtreecommitdiff
path: root/app/workers
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-02-13 10:22:38 +0000
committerRémy Coutable <remy@rymai.me>2017-02-13 10:22:38 +0000
commit6a1b3ef73f57d58d159e343f79e1f74418c2f763 (patch)
tree6e7c0bb5efbe28acba6728132952538ea399779a /app/workers
parent59f44052d8753247a4a7435780fcb41b43e274ac (diff)
parent128b1eae092e4ee9384c99a4ba72b9122fc17e89 (diff)
downloadgitlab-ce-6a1b3ef73f57d58d159e343f79e1f74418c2f763.tar.gz
Merge branch 'zj-drop-ruby-21-tests' into 'master'
Update Rubocop to Ruby 2.3 See merge request !8994
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/authorized_projects_worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/authorized_projects_worker.rb b/app/workers/authorized_projects_worker.rb
index 6abbb5a5250..0e20df506a3 100644
--- a/app/workers/authorized_projects_worker.rb
+++ b/app/workers/authorized_projects_worker.rb
@@ -16,6 +16,6 @@ class AuthorizedProjectsWorker
def perform(user_id)
user = User.find_by(id: user_id)
- user.refresh_authorized_projects if user
+ user&.refresh_authorized_projects
end
end