Skip to content

Commit 3dcbba6

Browse files
author
Kapil Borle
committed
Fix range object creation
1 parent 2e1e170 commit 3dcbba6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Engine/Commands/InvokeFormatterCommand.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ protected override void BeginProcessing()
8080
}
8181
#endif
8282

83-
this.range = new Range(Range[0], Range[1], Range[2], Range[3]);
84-
83+
this.range = Range == null ? null : new Range(Range[0], Range[1], Range[2], Range[3]);
8584
try
8685
{
8786
inputSettings = PSSASettings.Create(Settings, this.MyInvocation.PSScriptRoot, this);

0 commit comments

Comments
 (0)