Skip to content

Commit

Permalink
🐛 Fix findAgainArgument
Browse files Browse the repository at this point in the history
  • Loading branch information
maiqingqiang committed Jul 19, 2023
1 parent e29ee21 commit 55ed4bb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,10 @@ protected GoCompositeElement customFindGoCompositeElementByGoCallExpr(GoCallExpr
@Override
protected GoCompositeElement findAgainArgument(GoCompositeElement argument) {
if (argument instanceof GoCallExpr goCallExpr) {
return findGoTypeByReceiver(goCallExpr, Set.of(GoTypeSpecDescriptor.of("builtin.string")));
GoType newArgument = findGoTypeByReceiver(goCallExpr, Set.of(GoTypeSpecDescriptor.of("builtin.string")));
if (newArgument != null) return newArgument;
}
return null;
return argument;
}

}

0 comments on commit 55ed4bb

Please sign in to comment.