Skip to content

Commit 5388e30

Browse files
committed
Unify EOL in ProxyHost
1 parent 9841824 commit 5388e30

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

dev-proxy/ProxyHost.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -223,14 +223,14 @@ public ProxyHost()
223223

224224
_installCertOption = new Option<bool?>("--install-cert", "Install self-signed certificate");
225225
_installCertOption.SetDefaultValue(true);
226-
_installCertOption.AddValidator((input) =>
227-
{
228-
var asSystemProxy = input.GetValueForOption(_asSystemProxyOption) ?? true;
229-
var installCert = input.GetValueForOption(_installCertOption) ?? true;
230-
if (asSystemProxy && !installCert)
231-
{
232-
input.ErrorMessage = $"Requires option '--{_asSystemProxyOption.Name}' to be 'false'";
233-
}
226+
_installCertOption.AddValidator((input) =>
227+
{
228+
var asSystemProxy = input.GetValueForOption(_asSystemProxyOption) ?? true;
229+
var installCert = input.GetValueForOption(_installCertOption) ?? true;
230+
if (asSystemProxy && !installCert)
231+
{
232+
input.ErrorMessage = $"Requires option '--{_asSystemProxyOption.Name}' to be 'false'";
233+
}
234234
});
235235

236236
_urlsToWatchOption = new("--urls-to-watch", "The list of URLs to watch for requests")

0 commit comments

Comments
 (0)