Permalink
Browse files

made compiler not load data twice

  • Loading branch information...
1 parent 4a5f7fe commit 8059934a0e54c25e8fa34749837cdd52747e3cff @ddfreyne ddfreyne committed Jun 13, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/nanoc3/base/compilation/compiler.rb
View
3 lib/nanoc3/base/compilation/compiler.rb
@@ -111,6 +111,9 @@ def run(*args)
#
# @return [void]
def load
+ return if @loaded
+ @loaded = true
+
stores.each { |s| s.load }
# Preprocess

0 comments on commit 8059934

Please sign in to comment.