Skip to content

Commit

Permalink
Small bug in wsdlgen
Browse files Browse the repository at this point in the history
  • Loading branch information
droyo committed Nov 12, 2017
1 parent 742289a commit 1920bed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wsdlgen/wsdlgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,10 @@ func exposeType(typ string) string {
}

func (p *printer) getPartType(part wsdl.Part) (string, error) {
if part.Type != (xml.Name{}) {
if part.Type.Local != "" {
return p.code.NameOf(part.Type), nil
}
if part.Element != (xml.Name{}) {
if part.Element.Local != "" {
doc, ok := p.code.DocType(part.Element.Space)
if !ok {
return "", fmt.Errorf("part %s: could not lookup element %v",
Expand Down

0 comments on commit 1920bed

Please sign in to comment.