just call needs_to_reload? once
This commit is contained in:
parent
e169f88a5a
commit
e07bd036d1
|
@ -101,7 +101,7 @@ module Middleman
|
||||||
added_and_modified = (modified + added)
|
added_and_modified = (modified + added)
|
||||||
|
|
||||||
# See if the changed file is config.rb or lib/*.rb
|
# 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
|
reload
|
||||||
else
|
else
|
||||||
added_and_modified.each do |path|
|
added_and_modified.each do |path|
|
||||||
|
|
Loading…
Reference in a new issue