Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Brandl <abrandl@gitlab.com>2018-03-05 18:54:26 +0300
committerAndreas Brandl <abrandl@gitlab.com>2018-03-06 14:53:15 +0300
commite83e85ce11ecb6db1707b9fddcace5d9ec62f123 (patch)
treec29a751ec1f03a52e61a6749cb2446965ab1576c /app/models/user_interacted_project.rb
parent9ebbcb8f8b401d2a49cfec6b9cb55bf9703d8180 (diff)
Remove unnecessary safe guard.
Diffstat (limited to 'app/models/user_interacted_project.rb')
-rw-r--r--app/models/user_interacted_project.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/app/models/user_interacted_project.rb b/app/models/user_interacted_project.rb
index 5d661018a9d..064746457cf 100644
--- a/app/models/user_interacted_project.rb
+++ b/app/models/user_interacted_project.rb
@@ -17,12 +17,6 @@ class UserInteractedProject < ActiveRecord::Base
# is not related to any project).
return unless event.project_id
- # This is a precaution because the cache lookup
- # will work just fine without an author.
- #
- # However, this should never happen (tm).
- raise 'event#author not present unexpectedly' unless event.author
-
attributes = {
project_id: event.project_id,
user_id: event.author_id