Fix trivial go vet problems.

This commit is contained in:
John Beisley
2021-07-04 10:59:33 +01:00
parent 33cdcbb30d
commit a666909a2f
2 changed files with 6 additions and 6 deletions

View File

@ -129,7 +129,7 @@ func encodeRequestArgs(w *bytes.Buffer, inAction interface{}) error {
if value.Kind() != reflect.String {
return fmt.Errorf("goupnp: SOAP arg %q is not of type string, but of type %v", argName, value.Type())
}
elem := xml.StartElement{xml.Name{"", argName}, nil}
elem := xml.StartElement{Name: xml.Name{Space: "", Local: argName}, Attr: nil}
if err := enc.EncodeToken(elem); err != nil {
return fmt.Errorf("goupnp: error encoding start element for SOAP arg %q: %v", argName, err)
}