mirror of
https://github.com/bitwarden/server.git
synced 2025-04-06 05:28:15 -05:00
Remove use of yield
Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>
This commit is contained in:
parent
883a66ef5e
commit
3d1ef62493
@ -16,6 +16,6 @@ public class AuthorizeAttribute<T>
|
|||||||
public IEnumerable<IAuthorizationRequirement> GetRequirements()
|
public IEnumerable<IAuthorizationRequirement> GetRequirements()
|
||||||
{
|
{
|
||||||
var requirement = new T();
|
var requirement = new T();
|
||||||
yield return requirement;
|
return [requirement];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user