diff --git a/Directory.Packages.props b/Directory.Packages.props
index 480ed11b2..4514e1a72 100644
--- a/Directory.Packages.props
+++ b/Directory.Packages.props
@@ -16,15 +16,15 @@
-
-
-
-
-
-
+
+
+
+
+
+
-
+
diff --git a/global.json b/global.json
index ed67ad3e5..89ad380ed 100644
--- a/global.json
+++ b/global.json
@@ -1,6 +1,6 @@
{
"sdk": {
- "version": "8.0.100-rc.2.23472.8",
+ "version": "8.0.100-rtm.23506.1",
"allowPrerelease": false,
"rollForward": "latestMajor"
}
diff --git a/src/LondonTravel.Site/Controllers/ManageController.cs b/src/LondonTravel.Site/Controllers/ManageController.cs
index 30b5d70a1..b0a7689e4 100644
--- a/src/LondonTravel.Site/Controllers/ManageController.cs
+++ b/src/LondonTravel.Site/Controllers/ManageController.cs
@@ -10,6 +10,8 @@
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
+#pragma warning disable SA1010
+
namespace MartinCostello.LondonTravel.Site.Controllers;
[Authorize]
@@ -383,22 +385,22 @@ private async Task UpdateClaimsAsync(LondonTravelUser user, Exte
if (user.RoleClaims == null)
{
- user.RoleClaims = new List();
+ user.RoleClaims = [];
commitUpdate = true;
}
foreach (var claim in info.Principal.Claims)
{
- bool hasClaim = user?.RoleClaims
+ bool hasClaim = user.RoleClaims
.Where((p) => p.ClaimType == claim.Type)
.Where((p) => p.Issuer == claim.Issuer)
.Where((p) => p.Value == claim.Value)
.Where((p) => p.ValueType == claim.ValueType)
- .Any() == true;
+ .Any();
if (!hasClaim)
{
- user!.RoleClaims.Add(LondonTravelRole.FromClaim(claim));
+ user.RoleClaims.Add(LondonTravelRole.FromClaim(claim));
commitUpdate = true;
}
}