Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1448,13 +1448,13 @@ public RubyNode visitIfNode(org.jruby.ast.IfNode node) {

org.jruby.ast.Node thenBody = node.getThenBody();

if (thenBody == null) {
if (thenBody == null || thenBody.isNil()) {
thenBody = new org.jruby.ast.NilNode(node.getPosition());
}

org.jruby.ast.Node elseBody = node.getElseBody();

if (elseBody == null) {
if (elseBody == null || elseBody.isNil()) {
elseBody = new org.jruby.ast.NilNode(node.getPosition());
}

0 comments on commit 1fd8e8a

Please sign in to comment.