mirror of
https://github.com/bitwarden/server
synced 2026-01-31 00:33:17 +00:00
Use Single instead of First for explicit correctness
This commit is contained in:
@@ -11,7 +11,7 @@ public class PolicyRequirementQuery(
|
||||
: IPolicyRequirementQuery
|
||||
{
|
||||
public async Task<T> GetAsync<T>(Guid userId) where T : IPolicyRequirement
|
||||
=> (await GetAsync<T>([userId])).First();
|
||||
=> (await GetAsync<T>([userId])).Single();
|
||||
|
||||
public async Task<IEnumerable<T>> GetAsync<T>(IEnumerable<Guid> userIds) where T : IPolicyRequirement
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user