Skip to content

Commit

Permalink
Merge pull request #40 from balena-io/remove-unnecessary-parens
Browse files Browse the repository at this point in the history
Remove unnecessary brackets from filter
  • Loading branch information
Page- authored Dec 18, 2018
2 parents e85b633 + 80f8463 commit aca6607
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion balena/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (a *authHandler) getUserKeys(username string) ([]ssh.PublicKey, error) {

filter := pinejs.QueryOption{
Type: pinejs.Filter,
Content: []string{fmt.Sprintf("user/any(u:((tolower(u/username)) eq ('%s')))",
Content: []string{fmt.Sprintf("user/any(u:tolower(u/username) eq '%s')",
strings.ToLower(username))},
Raw: true}
fields := pinejs.QueryOption{
Expand Down

0 comments on commit aca6607

Please sign in to comment.