]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/notes_controller.rb
Fix new rubocop warnings
[rails.git] / app / controllers / notes_controller.rb
index 92f63e304f76c539b009cdbbfff4d593e8236447..a51d70f9030300056b73f5e532ed73523524211f 100644 (file)
@@ -350,9 +350,7 @@ class NotesController < ApplicationController
     comment = note.comments.create!(attributes)
 
     note.comments.map(&:author).uniq.each do |user|
     comment = note.comments.create!(attributes)
 
     note.comments.map(&:author).uniq.each do |user|
-      if notify && user && user != current_user && user.visible?
-        Notifier.note_comment_notification(comment, user).deliver_now
-      end
+      Notifier.note_comment_notification(comment, user).deliver_now if notify && user && user != current_user && user.visible?
     end
   end
 end
     end
   end
 end