1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-05 13:08:17 -05:00

Remove use of yield

Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>
This commit is contained in:
Thomas Rittson 2025-03-31 17:51:47 +10:00 committed by GitHub
parent 883a66ef5e
commit 3d1ef62493
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,6 +16,6 @@ public class AuthorizeAttribute<T>
public IEnumerable<IAuthorizationRequirement> GetRequirements()
{
var requirement = new T();
yield return requirement;
return [requirement];
}
}