summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/zorglub/node.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb
index 335aa68..a6159c3 100644
--- a/lib/zorglub/node.rb
+++ b/lib/zorglub/node.rb
@@ -286,11 +286,10 @@ module Zorglub
self.class.call_before_hooks self unless no_hooks
@state = :meth
@content = send @meth, *@args
- static_path = static
- if static_path.nil?
- compile_page!
- else
+ if (static_path = static)
static_page! static_path
+ else
+ compile_page!
end
@state = :post_cb
self.class.call_after_hooks self unless no_hooks