Browse Source

Use System.Index in additional places

pull/1589/head
Kévin Chalet 3 years ago
parent
commit
282acefcf6
  1. 2
      src/OpenIddict.Server.AspNetCore/OpenIddictServerAspNetCoreHandlers.cs
  2. 2
      src/OpenIddict.Server.Owin/OpenIddictServerOwinHandlers.cs
  3. 2
      src/OpenIddict.Validation.AspNetCore/OpenIddictValidationAspNetCoreHandlers.cs
  4. 2
      src/OpenIddict.Validation.Owin/OpenIddictValidationOwinHandlers.cs

2
src/OpenIddict.Server.AspNetCore/OpenIddictServerAspNetCoreHandlers.cs

@ -1095,7 +1095,7 @@ public static partial class OpenIddictServerAspNetCoreHandlers
}
// If the WWW-Authenticate header ends with a comma, remove it.
if (builder[builder.Length - 1] == ',')
if (builder[^1] == ',')
{
builder.Remove(builder.Length - 1, 1);
}

2
src/OpenIddict.Server.Owin/OpenIddictServerOwinHandlers.cs

@ -1269,7 +1269,7 @@ public static partial class OpenIddictServerOwinHandlers
}
// If the WWW-Authenticate header ends with a comma, remove it.
if (builder[builder.Length - 1] == ',')
if (builder[^1] == ',')
{
builder.Remove(builder.Length - 1, 1);
}

2
src/OpenIddict.Validation.AspNetCore/OpenIddictValidationAspNetCoreHandlers.cs

@ -558,7 +558,7 @@ public static partial class OpenIddictValidationAspNetCoreHandlers
}
// If the WWW-Authenticate header ends with a comma, remove it.
if (builder[builder.Length - 1] == ',')
if (builder[^1] == ',')
{
builder.Remove(builder.Length - 1, 1);
}

2
src/OpenIddict.Validation.Owin/OpenIddictValidationOwinHandlers.cs

@ -700,7 +700,7 @@ public static partial class OpenIddictValidationOwinHandlers
}
// If the WWW-Authenticate header ends with a comma, remove it.
if (builder[builder.Length - 1] == ',')
if (builder[^1] == ',')
{
builder.Remove(builder.Length - 1, 1);
}

Loading…
Cancel
Save