Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbod committed Nov 15, 2024
1 parent 1b3ed99 commit 206bcf6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions WebCodeFlowPkceClient/HostingExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,10 @@ namespace WebCodeFlowPkceClient;

internal static class HostingExtensions
{
private static IWebHostEnvironment? _env;

public static WebApplication ConfigureServices(this WebApplicationBuilder builder)
{
var services = builder.Services;
var configuration = builder.Configuration;
_env = builder.Environment;

services.AddTransient<IClaimsTransformation, MyClaimsTransformation>();

Expand Down Expand Up @@ -60,7 +57,7 @@ public static WebApplication ConfigurePipeline(this WebApplication app)

app.UseSerilogRequestLogging();

if (_env!.IsDevelopment())
if (app.Environment.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
Expand Down

0 comments on commit 206bcf6

Please sign in to comment.