Project

General

Profile

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

Nishida Yuya, 2025-03-19 15:29

View differences:

app/models/user.rb
def notify_about?(object)
if mail_notification == 'all'
true
elsif mail_notification.blank? || mail_notification == 'none'
elsif mail_notification == 'none'
false
else
case object
    (1-1/1)