Skip to content

A platform for community discussion. Free, open, simple.

Make rubocop happy.

Guo Xiang Tan74ce2220a7c2
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