Project

General

Profile

Patch #42445 ยป 0001-refactor-remove-extra-condition.patch

Nishida Yuya, 2025-03-19 15:29

View differences:

app/models/user.rb
815 815
  def notify_about?(object)
816 816
    if mail_notification == 'all'
817 817
      true
818
    elsif mail_notification.blank? || mail_notification == 'none'
818
    elsif mail_notification == 'none'
819 819
      false
820 820
    else
821 821
      case object
    (1-1/1)