Skip to content

Commit f072523

Browse files
tilligrynowak
authored andcommitted
Minor argument check fixes
Fixed `nameof()` reference to be consistent with arg being checked. Added null check for port to be consistent with earlier overload.
1 parent 5b8d93c commit f072523

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Middleware/HealthChecks/src/Builder/HealthCheckApplicationBuilderExtensions.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,11 @@ public static IApplicationBuilder UseHealthChecks(this IApplicationBuilder app,
200200
}
201201

202202
if (path == null)
203+
{
204+
throw new ArgumentNullException(nameof(path));
205+
}
206+
207+
if (port == null)
203208
{
204209
throw new ArgumentNullException(nameof(port));
205210
}

0 commit comments

Comments
 (0)