Skip to content

Commit

Permalink
Review: Correctly short-circuit explicit user requests
Browse files Browse the repository at this point in the history
  • Loading branch information
codingllama committed Jul 19, 2022
1 parent 2aa0297 commit 2112a12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/auth/touchid/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ func pickCredential(
// Single credential or specific user requested.
// A requested user means that all credentials are for that user, so there
// would be nothing to pick.
case l == 1 && userRequested:
case l == 1 || userRequested:
return &infos[0], nil
}

Expand Down

0 comments on commit 2112a12

Please sign in to comment.