just call needs_to_reload? once

This commit is contained in:
Artem Baguinski 2013-03-22 18:28:38 +01:00
parent e169f88a5a
commit e07bd036d1

View file

@ -101,7 +101,7 @@ module Middleman
added_and_modified = (modified + added)
# See if the changed file is config.rb or lib/*.rb
if needs_to_reload?(added_and_modified) || needs_to_reload?(removed)
if needs_to_reload?(added_and_modified + removed)
reload
else
added_and_modified.each do |path|