Skip to content

Commit ddeabc1

Browse files
committed
Remove trailing comma for client configuration
1 parent 1e41e5b commit ddeabc1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

openapi-core/src/main/java/io/ballerina/openapi/core/generators/client/AuthConfigGeneratorImp.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,11 @@ public VariableDeclarationNode getHttpClientConfigVariableNode() {
741741
argumentsList.add(comma);
742742
});
743743

744+
// Remove the last comma
745+
if (!argumentsList.isEmpty()) {
746+
argumentsList.removeLast();
747+
}
748+
744749
SeparatedNodeList<MappingFieldNode> arguments = createSeparatedNodeList(argumentsList);
745750
MappingConstructorExpressionNode mappingConstructorExpressionNode =
746751
createMappingConstructorExpressionNode(createToken(OPEN_BRACE_TOKEN),

0 commit comments

Comments
 (0)