summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Brandl <abrandl@gitlab.com>2018-03-05 16:54:26 +0100
committerAndreas Brandl <abrandl@gitlab.com>2018-03-06 12:53:15 +0100
commite83e85ce11ecb6db1707b9fddcace5d9ec62f123 (patch)
treec29a751ec1f03a52e61a6749cb2446965ab1576c
parent9ebbcb8f8b401d2a49cfec6b9cb55bf9703d8180 (diff)
downloadgitlab-ce-e83e85ce11ecb6db1707b9fddcace5d9ec62f123.tar.gz
Remove unnecessary safe guard.
-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