Skip to content

Commit

Permalink
remove tmp var
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts committed Apr 5, 2022
1 parent aeec2fb commit 24f96c2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions templates/java/libraries/okhttp-gson/api.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,7 @@ public class {{classname}} extends ApiClient {
queryParams.addAll(this.parameterToPair("{{baseName}}", {{paramName}}));
{{/x-is-custom-request}}
{{#x-is-custom-request}}
Map<String, Object> mapParameters = (Map<String, Object>) parameters;

for (Map.Entry<String, Object> parameter : mapParameters.entrySet()) {
for (Map.Entry<String, Object> parameter : parameters.entrySet()) {
queryParams.addAll(this.parameterToPair(parameter.getKey(), parameter.getValue().toString()));
}
{{/x-is-custom-request}}
Expand Down

0 comments on commit 24f96c2

Please sign in to comment.