Skip to content

Commit 7f36555

Browse files
committed
fix(quality): discard unused entry param in cache lambda
The UserHelper.GetByLoginId cache populator doesn't need the ICacheEntry parameter; using `_` silences the new ReSharper UnusedParameter.Local finding the previous commit introduced when it collapsed the closure.
1 parent cbb4abe commit 7f36555

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

web/Classes/UserHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ public bool HasPermission(RAPSContext? rapsContext, AaudUser? user, string permi
265265
if (HttpHelper.Cache != null && aaudContext != null)
266266
{
267267
user = HttpHelper.Cache.GetOrCreate("AaudUser-" + userLoginId,
268-
entry => aaudContext.AaudUsers.FirstOrDefault(m => m.LoginId == loginId));
268+
_ => aaudContext.AaudUsers.FirstOrDefault(m => m.LoginId == loginId));
269269

270270
return user;
271271
}

0 commit comments

Comments
 (0)