Skip to content

Commit

Permalink
Fix apiEndpoint creation in UserService.Find
Browse files Browse the repository at this point in the history
  • Loading branch information
lzakharov authored and andygrunwald committed Jan 20, 2019
1 parent c74da16 commit cbab0bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func (s *UserService) Find(property string, tweaks ...userSearchF) ([]User, *Res
queryString += param.name + "=" + param.value + "&"
}

apiEndpoint := fmt.Sprintf("/rest/api/2/user/search?" + queryString[:len(queryString)-1])
apiEndpoint := fmt.Sprintf("/rest/api/2/user/search?%s", queryString[:len(queryString)-1])
req, err := s.client.NewRequest("GET", apiEndpoint, nil)
if err != nil {
return nil, nil, err
Expand Down

0 comments on commit cbab0bb

Please sign in to comment.