diff options
author | Andreas Brandl <abrandl@gitlab.com> | 2018-03-05 18:54:26 +0300 |
---|---|---|
committer | Andreas Brandl <abrandl@gitlab.com> | 2018-03-06 14:53:15 +0300 |
commit | e83e85ce11ecb6db1707b9fddcace5d9ec62f123 (patch) | |
tree | c29a751ec1f03a52e61a6749cb2446965ab1576c /app/models | |
parent | 9ebbcb8f8b401d2a49cfec6b9cb55bf9703d8180 (diff) |
Remove unnecessary safe guard.
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/user_interacted_project.rb | 6 |
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 |