Skip to content

Commit cdab500

Browse files
committed
fix compiler warnings
1 parent 4fa824a commit cdab500

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

NorthwindCRUD/Middlewares/TenantHeaderValidationMiddleware.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ public class TenantHeaderValidationMiddleware
66
{
77
private const string TenantHeaderKey = "X-Tenant-ID";
88

9-
private readonly RequestDelegate _next;
9+
private readonly RequestDelegate next;
1010

1111
public TenantHeaderValidationMiddleware(RequestDelegate next)
1212
{
13-
_next = next;
13+
this.next = next;
1414
}
1515

1616
public async Task InvokeAsync(HttpContext context)
@@ -24,7 +24,7 @@ public async Task InvokeAsync(HttpContext context)
2424
return;
2525
}
2626

27-
await _next(context);
27+
await next(context);
2828
}
2929

3030
private bool IsTenantValid(string tenantId)

0 commit comments

Comments
 (0)