Skip to content

Commit 20b58d3

Browse files
committed
Small tidy up of code in cext.rb
1 parent 66c2be3 commit 20b58d3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/truffle/truffle/cext.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1735,7 +1735,9 @@ def rb_class_inherited_p(ruby_module, object)
17351735

17361736
def rb_get_special_vars
17371737
vars = Primitive.cext_special_variables_from_stack
1738-
vars = Truffle::ThreadOperations.ruby_caller_special_variables([Truffle::CExt, Truffle::Interop.singleton_class]) if vars.nil?
1738+
unless vars
1739+
vars = Truffle::ThreadOperations.ruby_caller_special_variables([Truffle::CExt, Truffle::Interop.singleton_class])
1740+
end
17391741
vars
17401742
end
17411743

0 commit comments

Comments
 (0)