Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions cloud/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,14 +241,6 @@ func WithInactive(inactive bool) UserSearchF {
}
}

// WithUsername sets the username to search
func WithUsername(username string) UserSearchF {
return func(s UserSearch) UserSearch {
s = append(s, UserSearchParam{name: "username", value: username})
return s
}
}

// WithAccountId sets the account id to search
func WithAccountId(accountId string) UserSearchF {
return func(s UserSearch) UserSearch {
Expand Down Expand Up @@ -283,7 +275,7 @@ func (s *UserService) Find(ctx context.Context, property string, tweaks ...UserS
search = f(search)
}

var queryString = ""
queryString := ""
for _, param := range search {
queryString += param.name + "=" + param.value + "&"
}
Expand Down