From f07252378039f1c31b3fd7eb64953f37c82a2ad1 Mon Sep 17 00:00:00 2001 From: Travis Illig Date: Mon, 14 Jan 2019 11:19:54 -0800 Subject: [PATCH] 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. --- .../src/Builder/HealthCheckApplicationBuilderExtensions.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Middleware/HealthChecks/src/Builder/HealthCheckApplicationBuilderExtensions.cs b/src/Middleware/HealthChecks/src/Builder/HealthCheckApplicationBuilderExtensions.cs index 6f54f51765..7b9fabebdd 100644 --- a/src/Middleware/HealthChecks/src/Builder/HealthCheckApplicationBuilderExtensions.cs +++ b/src/Middleware/HealthChecks/src/Builder/HealthCheckApplicationBuilderExtensions.cs @@ -200,6 +200,11 @@ namespace Microsoft.AspNetCore.Builder } if (path == null) + { + throw new ArgumentNullException(nameof(path)); + } + + if (port == null) { throw new ArgumentNullException(nameof(port)); }