Skip to content

Commit

Permalink
[PR 128-ecocode] replace EC34 by EC35 : correction of smell
Browse files Browse the repository at this point in the history
  • Loading branch information
dedece35 committed Oct 28, 2023
1 parent 09d896d commit 753df7b
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,8 @@ private void checkCallExpressionInChildren(SubscriptionContext context, Tree stm
}

private void visitCallExpression(SubscriptionContext context, CallExpression callExpression){
switch (getFunctionNameFromCallExpression(callExpression)) {
case "open":
context.addIssue(callExpression.firstToken(), DESCRIPTION);
break;
default:
break;
if ("open".equals(getFunctionNameFromCallExpression(callExpression))) {
context.addIssue(callExpression.firstToken(), DESCRIPTION);
}
}

Expand Down

0 comments on commit 753df7b

Please sign in to comment.