Remove unnecessary safe guard.

This commit is contained in:
Andreas Brandl 2018-03-05 16:54:26 +01:00
parent 9ebbcb8f8b
commit e83e85ce11
1 changed files with 0 additions and 6 deletions

View File

@ -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