diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/TestPathCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/TestPathCommand.cs index f5696712dd..04e6f36a8c 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/TestPathCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/TestPathCommand.cs @@ -247,6 +247,5 @@ namespace Microsoft.PowerShell.Commands } } #endregion Command code - } } diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ConvertFrom-StringData.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ConvertFrom-StringData.cs index 14cc2eecb6..9272e85c05 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ConvertFrom-StringData.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ConvertFrom-StringData.cs @@ -59,7 +59,6 @@ namespace Microsoft.PowerShell.Commands foreach (string line in lines) { - if (string.IsNullOrEmpty(line) || line[0] == '#') continue; diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/Executor.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/Executor.cs index 43cd165cc8..2a93fe02af 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/Executor.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/Executor.cs @@ -505,7 +505,6 @@ namespace Microsoft.PowerShell /// internal bool? ExecuteCommandAndGetResultAsBool(string command) { - bool? result = ExecuteCommandAndGetResultAsBool(command, out _); return result; diff --git a/src/System.Management.Automation/engine/NativeCommandProcessor.cs b/src/System.Management.Automation/engine/NativeCommandProcessor.cs index 326e96dfac..8a41b22db1 100644 --- a/src/System.Management.Automation/engine/NativeCommandProcessor.cs +++ b/src/System.Management.Automation/engine/NativeCommandProcessor.cs @@ -813,7 +813,6 @@ namespace System.Management.Automation stdOutDestination, stdOutSource, out _stdOutByteTransfer); - } } }