Skip to content

Commit

Permalink
fix rpc comment generation against allow_merge
Browse files Browse the repository at this point in the history
  • Loading branch information
kentdotn committed Jun 7, 2020
1 parent 6dd8bd6 commit 4568865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protoc-gen-swagger/genswagger/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func (g *generator) Generate(targets []*descriptor.File) ([]*plugin.CodeGenerato
for _, f := range targets {
if mergedTarget == nil {
mergedTarget = f
} else {
} else if mergedTarget != f {
mergedTarget.Enums = append(mergedTarget.Enums, f.Enums...)
mergedTarget.Messages = append(mergedTarget.Messages, f.Messages...)
mergedTarget.Services = append(mergedTarget.Services, f.Services...)
Expand Down

0 comments on commit 4568865

Please sign in to comment.