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.
This commit is contained in:
parent
5b8d93c9c6
commit
f072523780
|
|
@ -200,6 +200,11 @@ namespace Microsoft.AspNetCore.Builder
|
||||||
}
|
}
|
||||||
|
|
||||||
if (path == null)
|
if (path == null)
|
||||||
|
{
|
||||||
|
throw new ArgumentNullException(nameof(path));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (port == null)
|
||||||
{
|
{
|
||||||
throw new ArgumentNullException(nameof(port));
|
throw new ArgumentNullException(nameof(port));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue