Skip to content

Commit

Permalink
chore: omit nil check
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelgautier committed Aug 17, 2024
1 parent b0ca319 commit deb99b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (g *Generator) createRule(verb string, path string, o *openapi3.Operation)

if o.Security != nil && len(*o.Security) > 0 {
appendAuthenticator(o.Security)
} else if g.doc.Security != nil && len(g.doc.Security) > 0 {
} else if len(g.doc.Security) > 0 {
appendAuthenticator(&g.doc.Security)
} else {
ar, arerror := g.authenticators[string(authenticator.AuthenticatorTypeNoop)].CreateAuthenticator(nil)
Expand Down

0 comments on commit deb99b5

Please sign in to comment.