Skip to content

Commit

Permalink
Revert "add additional comment (#502)"
Browse files Browse the repository at this point in the history
This reverts commit 8ce0253.
  • Loading branch information
hahmed-dev authored Dec 21, 2023
1 parent 8ce0253 commit 3940e44
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions openapi-generator/templates/go/client.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,6 @@ func parameterToJson(obj interface{}) (string, error) {
// helper for serializing and setting mapped parameters request body
func serializeMapParams(key string, value interface{}, localParams url.Values) url.Values {
if reflect.TypeOf(value).Kind() == reflect.Map {
// since we allow values of type interface, type assertion is necessary
for k, v := range value.(map[string]interface{}) {
paramKeyName := fmt.Sprintf("%s[%s]", key, k)
serializeMapParams(paramKeyName, v, localParams)
Expand Down

0 comments on commit 3940e44

Please sign in to comment.