File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments