Skip to content

Commit

Permalink
refactor: OpenRewrite best practices
Browse files Browse the repository at this point in the history
Use this link to re-run the recipe: https://app.moderne.io/recipes/builder/BftezDRNh?organizationId=T3BlblJld3JpdGU%3D

Co-authored-by: Moderne <team@moderne.io>
  • Loading branch information
timtebeek and TeamModerne committed Jun 7, 2024
1 parent 0e20af3 commit f19ddfb
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import com.jetbrains.python.PyTokenTypes;
import com.jetbrains.python.psi.*;
import lombok.Value;
import org.jetbrains.annotations.NotNull;
import org.openrewrite.FileAttributes;
import org.openrewrite.internal.ListUtils;
import org.openrewrite.internal.lang.Nullable;
Expand Down Expand Up @@ -977,7 +976,7 @@ private Statement mapFunction(PyFunction element, BlockContext ctx) {
params = JContainer.build(spaceAfter(element.getNameIdentifier()),
singletonList(JRightPadded.build(new J.Empty(randomId(), after, EMPTY))), EMPTY);
} else {
PyParameter @NotNull [] pyParameters = element.getParameterList().getParameters();
PyParameter [] pyParameters = element.getParameterList().getParameters();
List<JRightPadded<Statement>> statements = new ArrayList<>(pyParameters.length);
for (int i = 0; i < pyParameters.length; i++) {
PyParameter parameter = pyParameters[i];
Expand Down

0 comments on commit f19ddfb

Please sign in to comment.