Skip to content

Commit aa4963b

Browse files
Minor fixes
1 parent 763ffde commit aa4963b

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

DevProxy/Commands/CertCommand.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace DevProxy.Commands;
1515
sealed class CertCommand : Command
1616
{
1717
private readonly ILogger _logger;
18-
private readonly Option<bool> _forceOption = new(["--force", "-f"], "Force the root certificate removal");
18+
private readonly Option<bool> _forceOption = new(["--force", "-f"], "Don't prompt for confirmation when removing the certificate");
1919

2020
public CertCommand(ILogger<CertCommand> logger) :
2121
base("cert", "Manage the Dev Proxy certificate")
@@ -62,9 +62,6 @@ private async Task EnsureCertAsync()
6262
public void RemoveCert(InvocationContext invocationContext)
6363
{
6464
_logger.LogTrace("RemoveCert() called");
65-
ArgumentNullException.ThrowIfNull(_logger);
66-
ArgumentNullException.ThrowIfNull(invocationContext);
67-
ArgumentNullException.ThrowIfNull(_forceOption);
6865

6966
try
7067
{
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5-
namespace DevProxy.Abstractions.Utils;
5+
using DevProxy.Abstractions.Utils;
66

7-
public static class HasRunFlag
7+
namespace DevProxy;
8+
9+
static class HasRunFlag
810
{
911
private static readonly string filename = Path.Combine(ProxyUtils.AppFolder!, ".hasrun");
1012

0 commit comments

Comments
 (0)