Skip to content

Commit ad6fde2

Browse files
committed
Address @SeeminglyScience feedback
1 parent 1168018 commit ad6fde2

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

src/PowerShellEditorServices/Utility/ArgumentUtils.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,8 @@ public static string Escape(string Arg)
2727
{
2828
return Arg;
2929
}
30-
else
31-
{
32-
return "\"" + Arg + "\"";
33-
}
30+
31+
return "\"" + Arg + "\"";
3432
}
3533

3634
return Arg;

test/PowerShellEditorServices.Test/Utility/ArgumentEscapingTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public void CanEvaluateArguments(string Arg, string expectedOutput)
5050
[Theory]
5151
[InlineData("NormalScript.ps1")]
5252
[InlineData("Bad&name4script.ps1")]
53-
[InlineData("[Truly] b&d Name_4_script.ps1")]
53+
[InlineData("[Truly] b&d `Name_4_script.ps1")]
5454
public void CanDotSourcePath(string rawFileName)
5555
{
5656
var ScriptAssetPath = @"..\..\..\..\PowerShellEditorServices.Test.Shared\scriptassets";

0 commit comments

Comments
 (0)