Skip to content

Commit

Permalink
refactor: Kill your Zombie code
Browse files Browse the repository at this point in the history
Use this link to re-run the recipe: https://app.moderne.io/builder/mybR2aHWC?organizationId=T3BlblJld3JpdGU%3D

Co-authored-by: Moderne <team@moderne.io>
  • Loading branch information
2 people authored and app committed Oct 23, 2024
1 parent 7213dea commit 71ac5c4
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ public J.MethodInvocation visitMethodInvocation(J.MethodInvocation m,
if (lastParameter instanceof J.MethodInvocation &&
(THROWABLE_GET_MESSAGE.matches(lastParameter) ||
THROWABLE_GET_LOCALIZED_MESSAGE.matches(lastParameter))) {
J.MethodInvocation getMessageCall = (J.MethodInvocation) lastParameter;

Expression firstParameter = method.getArguments().get(0);
if (isStringLiteral(firstParameter)) {
Expand Down

0 comments on commit 71ac5c4

Please sign in to comment.