Skip to content

Commit 6d6ba80

Browse files
committed
Simplify
1 parent 3f979c4 commit 6d6ba80

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

AspNetCoreAnalyzers.Tests/ModuleInitializer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ internal static void Initialize()
1212
MetadataReferences.Transitive(
1313
typeof(Microsoft.EntityFrameworkCore.DbContext),
1414
typeof(Microsoft.Extensions.Hosting.GenericHostBuilderExtensions),
15-
typeof(Microsoft.AspNetCore.Mvc.Controller),
16-
typeof(Microsoft.AspNetCore.Mvc.HttpGetAttribute)));
15+
typeof(Microsoft.Extensions.DependencyInjection.MvcServiceCollectionExtensions),
16+
typeof(Microsoft.AspNetCore.Builder.HttpsPolicyBuilderExtensions)));
1717
}
1818
}
1919
}

ValidCode/Order.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
namespace ValidCode
1+
namespace ValidCode
22
{
33
using System.Collections.Generic;
44

55
public class Order
66
{
77
public int Id { get; set; }
88

9-
public IEnumerable<OrderItem> Items { get; set; }
9+
public IEnumerable<OrderItem>? Items { get; set; }
1010
}
1111
}

0 commit comments

Comments
 (0)