Try to fix netf, once again into the breach

This commit is contained in:
Archi
2021-12-12 01:44:17 +01:00
parent 4f598d5c8f
commit 225003c5d1
14 changed files with 2 additions and 24 deletions

View File

@@ -71,7 +71,6 @@ internal sealed class ApiAuthenticationMiddleware {
[UsedImplicitly]
public async Task InvokeAsync(HttpContext context, IOptions<MvcNewtonsoftJsonOptions> jsonOptions) {
ArgumentNullException.ThrowIfNull(context);
ArgumentNullException.ThrowIfNull(jsonOptions);
(HttpStatusCode statusCode, bool permanent) = await GetAuthenticationStatus(context).ConfigureAwait(false);

View File

@@ -31,7 +31,6 @@ namespace ArchiSteamFarm.IPC.Integration;
internal sealed class CustomAttributesSchemaFilter : ISchemaFilter {
public void Apply(OpenApiSchema schema, SchemaFilterContext context) {
ArgumentNullException.ThrowIfNull(schema);
ArgumentNullException.ThrowIfNull(context);
ICustomAttributeProvider attributesProvider;

View File

@@ -33,7 +33,6 @@ namespace ArchiSteamFarm.IPC.Integration;
internal sealed class EnumSchemaFilter : ISchemaFilter {
public void Apply(OpenApiSchema schema, SchemaFilterContext context) {
ArgumentNullException.ThrowIfNull(schema);
ArgumentNullException.ThrowIfNull(context);
if (context.Type is not { IsEnum: true }) {

View File

@@ -63,7 +63,6 @@ internal sealed class Startup {
[UsedImplicitly]
public void Configure(IApplicationBuilder app, IWebHostEnvironment env) {
ArgumentNullException.ThrowIfNull(app);
ArgumentNullException.ThrowIfNull(env);
// The order of dependency injection is super important, doing things in wrong order will break everything