From 3d1ef62493c23b11f759f6d6ae271093dcaf4aff Mon Sep 17 00:00:00 2001 From: Thomas Rittson <31796059+eliykat@users.noreply.github.com> Date: Mon, 31 Mar 2025 17:51:47 +1000 Subject: [PATCH] Remove use of yield Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com> --- src/Api/AdminConsole/Authorization/AuthorizeAttribute.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Api/AdminConsole/Authorization/AuthorizeAttribute.cs b/src/Api/AdminConsole/Authorization/AuthorizeAttribute.cs index 9be09d30cd..1f864ece66 100644 --- a/src/Api/AdminConsole/Authorization/AuthorizeAttribute.cs +++ b/src/Api/AdminConsole/Authorization/AuthorizeAttribute.cs @@ -16,6 +16,6 @@ public class AuthorizeAttribute public IEnumerable GetRequirements() { var requirement = new T(); - yield return requirement; + return [requirement]; } }