diff --git a/structdoc.go b/structdoc.go index 7afdf83..0cd0fe9 100644 --- a/structdoc.go +++ b/structdoc.go @@ -65,10 +65,8 @@ func (b *Body) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { return err } } - } return nil - } // Document @@ -106,8 +104,6 @@ func (doc *Document) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error return err } } - } return nil - } diff --git a/structdrawing.go b/structdrawing.go index 4abeafc..f29fcd3 100644 --- a/structdrawing.go +++ b/structdrawing.go @@ -59,10 +59,8 @@ func (r *Drawing) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { continue } } - } return nil - } // WPInline is an element that represents an inline image within a text paragraph. @@ -184,10 +182,8 @@ func (r *WPInline) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err err continue } } - } return nil - } // WPExtent represents the extent of a drawing in a Word document. @@ -338,7 +334,6 @@ func (w *WPCNvGraphicFramePr) UnmarshalXML(d *xml.Decoder, start xml.StartElemen continue } } - } return nil } @@ -393,7 +388,6 @@ func (a *AGraphic) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { continue } } - } return nil } @@ -434,7 +428,6 @@ func (a *AGraphicData) UnmarshalXML(d *xml.Decoder, start xml.StartElement) erro continue } } - } return nil } @@ -490,7 +483,6 @@ func (p *PICPic) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { continue } } - } return nil } @@ -531,7 +523,6 @@ func (p *PICNonVisualPicProperties) UnmarshalXML(d *xml.Decoder, start xml.Start continue } } - } return nil } @@ -627,7 +618,6 @@ func (p *PICBlipFill) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error continue } } - } return nil } @@ -678,7 +668,6 @@ func (a *ABlip) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { continue } } - } return nil } @@ -740,7 +729,6 @@ func (p *PICSpPr) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { continue } } - } return nil } @@ -816,7 +804,6 @@ func (a *AXfrm) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err error) continue } } - } return nil } diff --git a/structlink.go b/structlink.go index c5e8e97..8d34150 100644 --- a/structlink.go +++ b/structlink.go @@ -37,8 +37,6 @@ func (r *Hyperlink) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { return err } } - } return nil - } diff --git a/structpara.go b/structpara.go index a89c642..22efc4b 100644 --- a/structpara.go +++ b/structpara.go @@ -34,10 +34,8 @@ func (p *ParagraphProperties) UnmarshalXML(d *xml.Decoder, start xml.StartElemen continue } } - } return nil - } // Paragraph @@ -177,9 +175,7 @@ func (p *Paragraph) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { } children = append(children, elem) } - } p.Children = children return nil - } diff --git a/structrun.go b/structrun.go index 098e8af..2a75e1c 100644 --- a/structrun.go +++ b/structrun.go @@ -81,11 +81,9 @@ func (r *Run) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { continue } } - } return nil - } // WTab is the literal tab @@ -139,11 +137,9 @@ func (r *RunProperties) UnmarshalXML(d *xml.Decoder, start xml.StartElement) err continue } } - } return nil - } // RunStyle contains styling for a run diff --git a/structtext.go b/structtext.go index 15a69bb..9b8ba16 100644 --- a/structtext.go +++ b/structtext.go @@ -28,7 +28,6 @@ func (r *Text) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { if tt, ok := t.(xml.CharData); ok { r.Text = string(tt) // implicitly copy } - } return nil