Skip to content

Commit ff20aad

Browse files
committed
Rename defaultValue to acceptByDefault parameter
1 parent 99e2436 commit ff20aad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

DevProxy/Commands/CertCommand.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public void RemoveCert(InvocationContext invocationContext)
7272
var isForced = invocationContext.ParseResult.GetValueForOption(_forceOption);
7373
if (!isForced)
7474
{
75-
var isConfirmed = PromptConfirmation("Do you want to remove the root certificate", defaultValue: false);
75+
var isConfirmed = PromptConfirmation("Do you want to remove the root certificate", acceptByDefault: false);
7676
if (!isConfirmed)
7777
{
7878
return;
@@ -96,16 +96,16 @@ public void RemoveCert(InvocationContext invocationContext)
9696
}
9797
}
9898

99-
private static bool PromptConfirmation(string message, bool defaultValue)
99+
private static bool PromptConfirmation(string message, bool acceptByDefault)
100100
{
101101
while (true)
102102
{
103-
Console.Write(message + $" ({(defaultValue ? "Y/n" : "y/N")}): ");
103+
Console.Write(message + $" ({(acceptByDefault ? "Y/n" : "y/N")}): ");
104104
var answer = Console.ReadLine();
105105

106106
if (string.IsNullOrWhiteSpace(answer))
107107
{
108-
return defaultValue;
108+
return acceptByDefault;
109109
}
110110
else if (string.Equals("y", answer, StringComparison.OrdinalIgnoreCase))
111111
{

0 commit comments

Comments
 (0)