Skip to content

Commit

Permalink
refactor: Fix missing braces
Browse files Browse the repository at this point in the history
  • Loading branch information
2 people authored and app committed Mar 12, 2024
1 parent 1565e78 commit 9712137
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ public J.MethodInvocation visitMethodInvocation(J.MethodInvocation method, Execu
reason = null;
} else if (mi.getArguments().size() == 2) {
reason = mi.getArguments().get(1);
} else return mi;
} else {
return mi;
}

if (argument instanceof J.InstanceOf) {
J.InstanceOf instanceOf = (J.InstanceOf) argument;
Expand All @@ -75,7 +77,9 @@ public J.MethodInvocation visitMethodInvocation(J.MethodInvocation method, Execu
} else if (mi.getArguments().size() == 2) {
reason = mi.getArguments().get(0);
argument = mi.getArguments().get(1);
} else return mi;
} else {
return mi;
}

if (argument instanceof J.InstanceOf) {
J.InstanceOf instanceOf = (J.InstanceOf) argument;
Expand Down

0 comments on commit 9712137

Please sign in to comment.