lib/nanoc/cli/commands/compile.rb in nanoc-4.2.4 vs lib/nanoc/cli/commands/compile.rb in nanoc-4.3.0
- old
+ new
@@ -269,10 +269,10 @@
end
# @see Listener#start
def start
Nanoc::Int::NotificationCenter.on(:compilation_started) do |_rep|
- if @gc_count % 20 == 0
+ if (@gc_count % 20).zero?
GC.enable
GC.start
GC.disable
end
@gc_count += 1