Skip to content

Commit

Permalink
Fix an oops in codegen for set in query params
Browse files Browse the repository at this point in the history
  • Loading branch information
argouber committed Dec 10, 2019
1 parent fdbc7b5 commit 54e21d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codegen/method.go
Expand Up @@ -1437,7 +1437,7 @@ func (ms *MethodSpec) setParseQueryParamStatements(
"%s%s := make(map[%s]struct{}, len(%s))",
indent, target, customElemType, identifierName,
)
statements.appendf("%sfor _, v := range %s {", indent, identifierName)
statements.appendf("%sfor %s := range %s {", indent, valVar, identifierName)
indent += "\t"
if isEnumElem {
tmpVar := "_tmp" + valVar
Expand Down

0 comments on commit 54e21d5

Please sign in to comment.