]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/diary_entry_controller.rb
Fix new rubocop warnings
[rails.git] / app / controllers / diary_entry_controller.rb
index 9e0fd4991bd4f62b6ec60e295efc44cf69aa6b49..6eb662bd843ec44370700a264b8c8c54eb229ec7 100644 (file)
@@ -65,9 +65,7 @@ class DiaryEntryController < ApplicationController
 
       # Notify current subscribers of the new comment
       @entry.subscribers.visible.each do |user|
-        if current_user != user
-          Notifier.diary_comment_notification(@diary_comment, user).deliver_now
-        end
+        Notifier.diary_comment_notification(@diary_comment, user).deliver_now if current_user != user
       end
 
       # Add the commenter to the subscribers if necessary