internal: remove xml.Name arg from Response.DecodeProp

The xml.Name is now retrieved from the interface{} argument via
reflection.
This commit is contained in:
Simon Ser
2020-01-15 11:44:27 +01:00
parent 25ab0b2076
commit 5fe39bbc13
4 changed files with 43 additions and 8 deletions

View File

@@ -29,7 +29,7 @@ func (c *Client) FindCurrentUserPrincipal() (string, error) {
}
var prop currentUserPrincipal
if err := resp.DecodeProp(name, &prop); err != nil {
if err := resp.DecodeProp(&prop); err != nil {
return "", err
}