Skip to content

Commit

Permalink
remove redundant code, fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kuklyy committed Feb 6, 2022
1 parent 95f49ee commit 8c01e61
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions swagger.go
Expand Up @@ -106,11 +106,10 @@ func Handler(configFns ...func(*Config)) http.HandlerFunc {
var once sync.Once

config := &Config{
URL: "doc.json",
DeepLinking: true,
DocExpansion: "list",
DomID: "#swagger-ui",
PersistAuthorization: false,
URL: "doc.json",
DeepLinking: true,
DocExpansion: "list",
DomID: "#swagger-ui",
}
for _, configFn := range configFns {
configFn(config)
Expand Down Expand Up @@ -243,7 +242,7 @@ window.onload = function() {
deepLinking: {{.DeepLinking}},
docExpansion: "{{.DocExpansion}}",
dom_id: "{{.DomID}}",
persistAuthorization: {{.PersistAuthorization}},
persistAuthorization: {{.PersistAuthorization}},
validatorUrl: null,
presets: [
SwaggerUIBundle.presets.apis,
Expand Down

0 comments on commit 8c01e61

Please sign in to comment.