Skip to content

Commit b37be50

Browse files
committed
Redundant variable removed
1 parent 57defa6 commit b37be50

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Calabonga.AspNetCore.AppDefinitions/AppDefinitionExtensions.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using Microsoft.AspNetCore.Builder;
2-
using Microsoft.AspNetCore.Hosting;
32
using Microsoft.Extensions.DependencyInjection;
43
using Microsoft.Extensions.Logging;
54

@@ -50,7 +49,6 @@ public static void AddDefinitions(this IServiceCollection source, WebApplication
5049
public static void UseDefinitions(this WebApplication source)
5150
{
5251
var logger = source.Services.GetRequiredService<ILogger<AppDefinition>>();
53-
var environment = source.Services.GetRequiredService<IWebHostEnvironment>();
5452
var definitions = source.Services.GetRequiredService<IReadOnlyCollection<IAppDefinition>>();
5553
var instancesOrdered = definitions.Where(x => x.Enabled).OrderBy(x => x.OrderIndex).ToList();
5654

0 commit comments

Comments
 (0)