- if comment.author
- @commenter = comment.author.display_name
- else
- @commenter = I18n.t("notifier.note_comment_notification.anonymous")
- end
-
- if @owner
- subject = I18n.t("notifier.note_comment_notification.#{@event}.subject_own", :commenter => @commenter)
- else
- subject = I18n.t("notifier.note_comment_notification.#{@event}.subject_other", :commenter => @commenter)
- end
+ @commenter = if comment.author
+ comment.author.display_name
+ else
+ I18n.t("notifier.note_comment_notification.anonymous")
+ end
+
+ subject = if @owner
+ I18n.t("notifier.note_comment_notification.#{@event}.subject_own", :commenter => @commenter)
+ else
+ I18n.t("notifier.note_comment_notification.#{@event}.subject_other", :commenter => @commenter)
+ end