Skip to content

Commit 43a7eeb

Browse files
authored
fix: regression for HasXYZ methods (#117)
1 parent b54e0ef commit 43a7eeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/go/model_simple.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ func (o *{{classname}}) Get{{name}}Ok() (*{{#isNumber}}float64{{/isNumber}}{{#is
245245

246246
// Has{{name}} returns a boolean if a field has been set.
247247
func (o *{{classname}}) Has{{name}}() bool {
248-
if o != nil && !IsNil(o.{{name}}) && !IsNil(o.{{name}}) {{#isNullable}}{{^vendorExtensions.x-golang-is-container}}&& o.{{name}}.IsSet(){{/vendorExtensions.x-golang-is-container}}{{/isNullable}} {
248+
if o != nil && !IsNil(o.{{name}}){{#isNullable}}{{^vendorExtensions.x-golang-is-container}} && o.{{name}}.IsSet(){{/vendorExtensions.x-golang-is-container}}{{/isNullable}} {
249249
return true
250250
}
251251

0 commit comments

Comments
 (0)