Skip to content

Commit 2f79340

Browse files
author
Brian Melton
committed
Bugfix for duplicated functionOption additions
1 parent afc20da commit 2f79340

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Templates/Android/generated/BaseMethodCollectionRequestBuilder.java.tt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,16 @@
3939
options
4040
);
4141

42-
<# foreach (var p in c.AsOdcmMethod().Parameters) { #>
43-
<# if (isPost) { #>
42+
<# if (isPost) { #>
43+
<# foreach (var p in c.AsOdcmMethod().Parameters) { #>
4444
if (hasParameter("<#=ParamName(p)#>")) {
4545
request.mBody.<#=ParamName(p)#> = getParameter("<#=ParamName(p)#>");
4646
}
47-
<# } else { #>
47+
<# } #>
48+
<# } else { #>
4849
for (FunctionOption option : mFunctionOptions) {
4950
request.addFunctionOption(option);
50-
}
51-
<# } #>
51+
}
5252
<# } #>
5353

5454
return request;

0 commit comments

Comments
 (0)