Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
weidongxu-microsoft committed May 13, 2024
1 parent 7adfd7b commit 6a19a14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@ public ClientMethodExampleWriter(ClientMethod method, String clientVarName, Prox
methodInvocation.append(assignment);
}

String methodCall = String.format("%s.%s(%s);",
String methodCall = String.format("%s.%s(%s)",
clientVarName,
method.getName(),
parameterInvocations);
if (method.getType() == ClientMethodType.LongRunningBeginSync || method.getType() == ClientMethodType.LongRunningBeginAsync) {
methodCall = "setPlaybackSyncPollerPollInterval(" + methodCall + ")";
}
methodInvocation.append(methodCall);
methodInvocation.append(methodCall).append(";");

methodBlock.line(methodInvocation.toString());
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,14 +224,14 @@ public ProtocolExampleWriter(ProtocolExample protocolExample) {
params.set(i, "Context.NONE");
}
}
String methodCall = String.format("%s.%s(%s);",
String methodCall = String.format("%s.%s(%s)",
clientVarName,
method.getName(),
String.join(", ", params));
if (method.getType() == ClientMethodType.LongRunningBeginSync || method.getType() == ClientMethodType.LongRunningBeginAsync) {
methodCall = "setPlaybackSyncPollerPollInterval(" + methodCall + ")";
}
methodBlock.line(method.getReturnValue().getType() + " response = " + methodCall);
methodBlock.line(method.getReturnValue().getType() + " response = " + methodCall + ";");
};

this.assertionWriter = methodBlock -> {
Expand Down

0 comments on commit 6a19a14

Please sign in to comment.