We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6768b39 commit 6052d67Copy full SHA for 6052d67
src/Microsoft.PowerShell.Commands.Utility/commands/utility/ReadConsoleCmdlet.cs
@@ -149,9 +149,9 @@ protected override void BeginProcessing()
149
{
150
foreach (PSObject o in result.Values)
151
152
- if (MaskInput && o.BaseObject is SecureString)
+ if (MaskInput && o.BaseObject is SecureString secureString)
153
154
- WriteObject(Utils.GetStringFromSecureString((SecureString)o.BaseObject));
+ WriteObject(Utils.GetStringFromSecureString(secureString));
155
}
156
else
157
0 commit comments