over calling change callbacks which are unnecessary.
This commit is contained in:
parent
ef0b996004
commit
eb1a658b25
3 changed files with 4 additions and 4 deletions
|
@ -339,7 +339,7 @@ module Middleman
|
|||
valid_updated = updated_files.select { |f| f[:types].include?(callback[:type]) }
|
||||
valid_removed = removed_files.select { |f| f[:types].include?(callback[:type]) }
|
||||
|
||||
callback[:proc].call(valid_updated, valid_removed)
|
||||
callback[:proc].call(valid_updated, valid_removed) unless valid_updated.empty? && valid_removed.empty?
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue