Skip to content

Commit

Permalink
Remove getStarlarkCallable() in positionalOnlyCall(). All callers of …
Browse files Browse the repository at this point in the history
…positionalOnlyCall() already pass in a StarlarkCallable.

PiperOrigin-RevId: 726548379
Change-Id: Idd7e23558083bee15d681d9bd580e6cbe9360882
  • Loading branch information
pzembrod authored and copybara-github committed Feb 13, 2025
1 parent e1d5e86 commit a329a8c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/net/starlark/java/eval/Starlark.java
Original file line number Diff line number Diff line change
Expand Up @@ -866,10 +866,9 @@ public static Object callViaArgumentProcessor(
* Starlark call stack rather than the Java call stack. The original throwable (and the Java call
* stack) may be retrieved using {@link Throwable#getCause}.
*/
public static Object positionalOnlyCall(StarlarkThread thread, Object fn, Object... positional)
public static Object positionalOnlyCall(
StarlarkThread thread, StarlarkCallable callable, Object... positional)
throws EvalException, InterruptedException {
StarlarkCallable callable = getStarlarkCallable(thread, fn);

// LINT.IfChange(positionalOnlyCall)
thread.push(callable);
try {
Expand Down

0 comments on commit a329a8c

Please sign in to comment.