Skip to content

Commit

Permalink
protoc-gen-swagger/genswagger: simplify skipRenderingRef
Browse files Browse the repository at this point in the history
Signed-off-by: Stephan Renatus <[email protected]>
  • Loading branch information
srenatus authored and johanbrandhorst committed Jan 10, 2019
1 parent 2e215aa commit 9772451
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions protoc-gen-swagger/genswagger/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,8 @@ func findNestedMessagesAndEnumerations(message *descriptor.Message, reg *descrip
}

func skipRenderingRef(refName string) bool {
if _, ok := wktSchemas[refName]; ok {
return true
}
return false
_, ok := wktSchemas[refName]
return ok
}

func renderMessagesAsDefinition(messages messageMap, d swaggerDefinitionsObject, reg *descriptor.Registry, customRefs refMap) {
Expand Down

0 comments on commit 9772451

Please sign in to comment.