From 74ce2220a7c2e7b18b6d2998e291615da6fd52bc Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Mon, 12 Mar 2018 09:48:41 +0800 Subject: [PATCH] Make rubocop happy. --- app/mailers/user_notifications.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mailers/user_notifications.rb b/app/mailers/user_notifications.rb index 9b268908370..4a021ce808e 100644 --- a/app/mailers/user_notifications.rb +++ b/app/mailers/user_notifications.rb @@ -435,7 +435,7 @@ class UserNotifications < ActionMailer::Base if post.topic.private_message? subject_pm = - if opts[:show_group_in_subject] and group = post.topic.allowed_groups&.first + if opts[:show_group_in_subject] && group = post.topic.allowed_groups&.first if group.full_name "[#{group.full_name}] " else