]> source.dussan.org Git - redmine.git/commitdiff
add empty line after guard clause to app/models/watcher.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 3 Nov 2020 14:56:13 +0000 (14:56 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 3 Nov 2020 14:56:13 +0000 (14:56 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20239 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/watcher.rb

index 00de677b87a0954feabb2304659b8f66f76e0b91..633cd356596f7d3bb10b0a3561158235af6b83de 100644 (file)
@@ -60,9 +60,11 @@ class Watcher < ActiveRecord::Base
 
   def self.prune_single_user(user, options={})
     return unless user.is_a?(User)
+
     pruned = 0
     where(:user_id => user.id).each do |watcher|
       next if watcher.watchable.nil?
+
       if options.has_key?(:project)
         unless watcher.watchable.respond_to?(:project) &&
                  watcher.watchable.project == options[:project]