Skip to content

Commit 206bcf6

Browse files
committed
clean up
1 parent 1b3ed99 commit 206bcf6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

WebCodeFlowPkceClient/HostingExtensions.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,10 @@ namespace WebCodeFlowPkceClient;
88

99
internal static class HostingExtensions
1010
{
11-
private static IWebHostEnvironment? _env;
12-
1311
public static WebApplication ConfigureServices(this WebApplicationBuilder builder)
1412
{
1513
var services = builder.Services;
1614
var configuration = builder.Configuration;
17-
_env = builder.Environment;
1815

1916
services.AddTransient<IClaimsTransformation, MyClaimsTransformation>();
2017

@@ -60,7 +57,7 @@ public static WebApplication ConfigurePipeline(this WebApplication app)
6057

6158
app.UseSerilogRequestLogging();
6259

63-
if (_env!.IsDevelopment())
60+
if (app.Environment.IsDevelopment())
6461
{
6562
app.UseDeveloperExceptionPage();
6663
}

0 commit comments

Comments
 (0)