reader.go
Function decodeContentTypes
has 5 return statements (exceeds 4 allowed). Open
Open
func decodeContentTypes(r io.Reader) (*contentTypes, error) {
ctdecode := new(contentTypesXMLReader)
if err := xml.NewDecoder(r).Decode(ctdecode); err != nil {
return nil, fmt.Errorf("opc: %s: cannot be decoded: %v", contentTypesName, err)
}
Method Reader.loadPackage
has 5 return statements (exceeds 4 allowed). Open
Open
func (r *Reader) loadPackage() error {
ct, rels, err := r.loadPartProperties()
if err != nil {
return err
}