Skip to content

Commit

Permalink
code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbod committed Jan 2, 2024
1 parent 943b32b commit 191803d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions AzureB2CUI/StartupExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ internal static class StartupExtensions
{
private static IWebHostEnvironment? _env;
private static IServiceProvider? _applicationServices;

public static WebApplication ConfigureServices(this WebApplicationBuilder builder)
{
var services = builder.Services;
Expand Down
4 changes: 1 addition & 3 deletions WebApis/StartupExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ namespace WebApis;

internal static class StartupExtensions
{
private static IWebHostEnvironment? _env;
public static WebApplication ConfigureServices(this WebApplicationBuilder builder)
{
var services = builder.Services;
var configuration = builder.Configuration;
_env = builder.Environment;

services.AddHttpClient();

Expand Down Expand Up @@ -110,7 +108,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 191803d

Please sign in to comment.