Skip to content

Commit 1956bf0

Browse files
refactor: OpenRewrite Recipe best practices
Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.recipes.rewrite.OpenRewriteRecipeBestPractices?organizationId=T3BlblJld3JpdGU%3D Co-authored-by: Moderne <[email protected]>
1 parent 0d759e3 commit 1956bf0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/org/openrewrite/java/testing/search/FindUnitTests.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ public static class AccumulatorValue {
8383

8484
@Override
8585
public Accumulator getInitialValue(ExecutionContext ctx) {
86-
if (acc != null) return acc;
86+
if (acc != null) {
87+
return acc;
88+
}
8789
return new Accumulator();
8890
}
8991

0 commit comments

Comments
 (0)