Skip to content

Commit 0bdcaed

Browse files
committed
Use isSingleContext() helper
1 parent 201bb4b commit 0bdcaed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/truffleruby/language/methods/CallInternalMethodNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ static Object[] packArguments(Object callerData, InternalMethod method, Object s
140140
}
141141

142142
protected Assumption getMethodAssumption(InternalMethod method) {
143-
return RubyLanguage.getCurrentLanguage().singleContext
143+
return isSingleContext()
144144
? method.getDeclaringModule().fields.getOrCreateMethodAssumption(method.getName())
145145
: AlwaysValidAssumption.INSTANCE;
146146
}

0 commit comments

Comments
 (0)