Skip to content

Commit 3c64581

Browse files
authored
Merge branch 'master' into issue-9495
2 parents 0dfdb25 + d1d5038 commit 3c64581

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/swagger-codegen/src/main/resources/go/api.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ func (a *{{{classname}}}Service) {{{nickname}}}(ctx context.Context{{#hasParams}
148148
{{#hasFormParams}}
149149
{{#formParams}}
150150
{{#isFile}}
151-
{{^required}}
152151
var localVarFile {{dataType}}
152+
{{^required}}
153153
if localVarOptionals != nil && localVarOptionals.{{vendorExtensions.x-exportParamName}}.IsSet() {
154154
localVarFileOk := false
155155
localVarFile, localVarFileOk = localVarOptionals.{{vendorExtensions.x-exportParamName}}.Value().({{dataType}})

0 commit comments

Comments
 (0)