We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 98c4c1e + fd5113a commit 6d691c9Copy full SHA for 6d691c9
cmd/genswaggertypedocs/swagger_type_docs.go
@@ -54,15 +54,15 @@ func main() {
54
55
docsForTypes := kruntime.ParseDocumentationFrom(*typeSrc)
56
57
- if *verify == true {
+ if *verify {
58
rc, err := kruntime.VerifySwaggerDocsExist(docsForTypes, funcOut)
59
if err != nil {
60
fmt.Fprintf(os.Stderr, "Error in verification process: %s\n", err)
61
}
62
os.Exit(rc)
63
64
65
- if docsForTypes != nil && len(docsForTypes) > 0 {
+ if len(docsForTypes) > 0 {
66
if err := kruntime.WriteSwaggerDocFunc(docsForTypes, funcOut); err != nil {
67
fmt.Fprintf(os.Stderr, "Error when writing swagger documentation functions: %s\n", err)
68
os.Exit(-1)
0 commit comments