Skip to content

Commit 3babf1a

Browse files
committed
and the prev call-info restore seems redundant
1 parent 8f18a62 commit 3babf1a

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

core/src/main/java/org/jruby/RubyArgsFile.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,10 +398,8 @@ private static IRubyObject argf_getline(ThreadContext context, final int callInf
398398
RubyIO currentFile = (RubyIO) data.currentFile;
399399

400400
if (isGenericInput(context, data)) {
401-
final int prevCallInfo = context.callInfo;
402401
context.callInfo = callInfo; // restore callInfo for kwargs
403402
line = data.currentFile.callMethod(context, "gets", args);
404-
context.callInfo = prevCallInfo;
405403
} else {
406404
if (args.length == 0 && context.runtime.getRecordSeparatorVar().get() == globalVariables(context).getDefaultSeparator()) {
407405
line = (currentFile).gets(context);

0 commit comments

Comments
 (0)