From 5c03db709fa3a326288a57a65643bd9ddf905bec Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Mon, 7 Mar 2016 11:51:58 +0200 Subject: [PATCH] fix if false logic --- lib/soml/code/to_code.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/soml/code/to_code.rb b/lib/soml/code/to_code.rb index 389dd4f..35c9f86 100644 --- a/lib/soml/code/to_code.rb +++ b/lib/soml/code/to_code.rb @@ -80,6 +80,8 @@ module Soml def on_statements statement w = Statements.new() + return w unless statement.children + return w unless statement.children.first w.statements = process_all(statement.children) w end