@@ -2283,15 +2283,15 @@ func (m *Document) ToRawInfo() *yaml.Node {
22832283 info .Content = append (info .Content , compiler .NewScalarNodeForString ("ownerName" ))
22842284 info .Content = append (info .Content , compiler .NewScalarNodeForString (m .OwnerName ))
22852285 }
2286- if m .VersionModule != false {
2286+ if m .VersionModule {
22872287 info .Content = append (info .Content , compiler .NewScalarNodeForString ("version_module" ))
22882288 info .Content = append (info .Content , compiler .NewScalarNodeForBool (m .VersionModule ))
22892289 }
22902290 if m .CanonicalName != "" {
22912291 info .Content = append (info .Content , compiler .NewScalarNodeForString ("canonicalName" ))
22922292 info .Content = append (info .Content , compiler .NewScalarNodeForString (m .CanonicalName ))
22932293 }
2294- if m .FullyEncodeReservedExpansion != false {
2294+ if m .FullyEncodeReservedExpansion {
22952295 info .Content = append (info .Content , compiler .NewScalarNodeForString ("fullyEncodeReservedExpansion" ))
22962296 info .Content = append (info .Content , compiler .NewScalarNodeForBool (m .FullyEncodeReservedExpansion ))
22972297 }
@@ -2339,7 +2339,7 @@ func (m *MediaUpload) ToRawInfo() *yaml.Node {
23392339 info .Content = append (info .Content , compiler .NewScalarNodeForString ("protocols" ))
23402340 info .Content = append (info .Content , m .Protocols .ToRawInfo ())
23412341 }
2342- if m .SupportsSubscription != false {
2342+ if m .SupportsSubscription {
23432343 info .Content = append (info .Content , compiler .NewScalarNodeForString ("supportsSubscription" ))
23442344 info .Content = append (info .Content , compiler .NewScalarNodeForBool (m .SupportsSubscription ))
23452345 }
@@ -2388,31 +2388,31 @@ func (m *Method) ToRawInfo() *yaml.Node {
23882388 info .Content = append (info .Content , compiler .NewScalarNodeForString ("scopes" ))
23892389 info .Content = append (info .Content , compiler .NewSequenceNodeForStringArray (m .Scopes ))
23902390 }
2391- if m .SupportsMediaDownload != false {
2391+ if m .SupportsMediaDownload {
23922392 info .Content = append (info .Content , compiler .NewScalarNodeForString ("supportsMediaDownload" ))
23932393 info .Content = append (info .Content , compiler .NewScalarNodeForBool (m .SupportsMediaDownload ))
23942394 }
2395- if m .SupportsMediaUpload != false {
2395+ if m .SupportsMediaUpload {
23962396 info .Content = append (info .Content , compiler .NewScalarNodeForString ("supportsMediaUpload" ))
23972397 info .Content = append (info .Content , compiler .NewScalarNodeForBool (m .SupportsMediaUpload ))
23982398 }
2399- if m .UseMediaDownloadService != false {
2399+ if m .UseMediaDownloadService {
24002400 info .Content = append (info .Content , compiler .NewScalarNodeForString ("useMediaDownloadService" ))
24012401 info .Content = append (info .Content , compiler .NewScalarNodeForBool (m .UseMediaDownloadService ))
24022402 }
24032403 if m .MediaUpload != nil {
24042404 info .Content = append (info .Content , compiler .NewScalarNodeForString ("mediaUpload" ))
24052405 info .Content = append (info .Content , m .MediaUpload .ToRawInfo ())
24062406 }
2407- if m .SupportsSubscription != false {
2407+ if m .SupportsSubscription {
24082408 info .Content = append (info .Content , compiler .NewScalarNodeForString ("supportsSubscription" ))
24092409 info .Content = append (info .Content , compiler .NewScalarNodeForBool (m .SupportsSubscription ))
24102410 }
24112411 if m .FlatPath != "" {
24122412 info .Content = append (info .Content , compiler .NewScalarNodeForString ("flatPath" ))
24132413 info .Content = append (info .Content , compiler .NewScalarNodeForString (m .FlatPath ))
24142414 }
2415- if m .EtagRequired != false {
2415+ if m .EtagRequired {
24162416 info .Content = append (info .Content , compiler .NewScalarNodeForString ("etagRequired" ))
24172417 info .Content = append (info .Content , compiler .NewScalarNodeForBool (m .EtagRequired ))
24182418 }
@@ -2547,7 +2547,7 @@ func (m *Parameter) ToRawInfo() *yaml.Node {
25472547 info .Content = append (info .Content , compiler .NewScalarNodeForString ("default" ))
25482548 info .Content = append (info .Content , compiler .NewScalarNodeForString (m .Default ))
25492549 }
2550- if m .Required != false {
2550+ if m .Required {
25512551 info .Content = append (info .Content , compiler .NewScalarNodeForString ("required" ))
25522552 info .Content = append (info .Content , compiler .NewScalarNodeForBool (m .Required ))
25532553 }
@@ -2575,7 +2575,7 @@ func (m *Parameter) ToRawInfo() *yaml.Node {
25752575 info .Content = append (info .Content , compiler .NewScalarNodeForString ("enumDescriptions" ))
25762576 info .Content = append (info .Content , compiler .NewSequenceNodeForStringArray (m .EnumDescriptions ))
25772577 }
2578- if m .Repeated != false {
2578+ if m .Repeated {
25792579 info .Content = append (info .Content , compiler .NewScalarNodeForString ("repeated" ))
25802580 info .Content = append (info .Content , compiler .NewScalarNodeForBool (m .Repeated ))
25812581 }
@@ -2702,7 +2702,7 @@ func (m *Resumable) ToRawInfo() *yaml.Node {
27022702 if m == nil {
27032703 return info
27042704 }
2705- if m .Multipart != false {
2705+ if m .Multipart {
27062706 info .Content = append (info .Content , compiler .NewScalarNodeForString ("multipart" ))
27072707 info .Content = append (info .Content , compiler .NewScalarNodeForBool (m .Multipart ))
27082708 }
@@ -2735,7 +2735,7 @@ func (m *Schema) ToRawInfo() *yaml.Node {
27352735 info .Content = append (info .Content , compiler .NewScalarNodeForString ("default" ))
27362736 info .Content = append (info .Content , compiler .NewScalarNodeForString (m .Default ))
27372737 }
2738- if m .Required != false {
2738+ if m .Required {
27392739 info .Content = append (info .Content , compiler .NewScalarNodeForString ("required" ))
27402740 info .Content = append (info .Content , compiler .NewScalarNodeForBool (m .Required ))
27412741 }
@@ -2763,7 +2763,7 @@ func (m *Schema) ToRawInfo() *yaml.Node {
27632763 info .Content = append (info .Content , compiler .NewScalarNodeForString ("enumDescriptions" ))
27642764 info .Content = append (info .Content , compiler .NewSequenceNodeForStringArray (m .EnumDescriptions ))
27652765 }
2766- if m .Repeated != false {
2766+ if m .Repeated {
27672767 info .Content = append (info .Content , compiler .NewScalarNodeForString ("repeated" ))
27682768 info .Content = append (info .Content , compiler .NewScalarNodeForBool (m .Repeated ))
27692769 }
@@ -2791,7 +2791,7 @@ func (m *Schema) ToRawInfo() *yaml.Node {
27912791 info .Content = append (info .Content , compiler .NewScalarNodeForString ("annotations" ))
27922792 info .Content = append (info .Content , m .Annotations .ToRawInfo ())
27932793 }
2794- if m .ReadOnly != false {
2794+ if m .ReadOnly {
27952795 info .Content = append (info .Content , compiler .NewScalarNodeForString ("readOnly" ))
27962796 info .Content = append (info .Content , compiler .NewScalarNodeForBool (m .ReadOnly ))
27972797 }
@@ -2847,7 +2847,7 @@ func (m *Simple) ToRawInfo() *yaml.Node {
28472847 if m == nil {
28482848 return info
28492849 }
2850- if m .Multipart != false {
2850+ if m .Multipart {
28512851 info .Content = append (info .Content , compiler .NewScalarNodeForString ("multipart" ))
28522852 info .Content = append (info .Content , compiler .NewScalarNodeForBool (m .Multipart ))
28532853 }
0 commit comments