From 2112a122471171861a0056efb63b651ad37088ea Mon Sep 17 00:00:00 2001 From: Alan Parra Date: Mon, 18 Jul 2022 14:14:04 -0300 Subject: [PATCH] Review: Correctly short-circuit explicit user requests --- lib/auth/touchid/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/auth/touchid/api.go b/lib/auth/touchid/api.go index 117df5430fd59..a1a5ab71205d9 100644 --- a/lib/auth/touchid/api.go +++ b/lib/auth/touchid/api.go @@ -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 }