Skip to content

Commit 0dc8f4b

Browse files
committed
address Jim's feedback
1 parent 9225ff0 commit 0dc8f4b

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/System.Management.Automation/FormatAndOutput/DefaultFormatters/PowerShellCore_format_ps1xml.cs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,15 +1087,8 @@ function Get-ConciseViewPositionMessage {
10871087
10881088
if ($useTargetObject) {
10891089
$line = $_.TargetObject.LineText.Trim()
1090-
$indexOfShould = $line.IndexOf('should',[System.StringComparison]::OrdinalIgnoreCase)
1091-
if ($indexOfShould -ge 0) {
1092-
$offsetLength = 'should'.Length
1093-
$offsetInLine = $indexOfShould
1094-
}
1095-
else {
1096-
$offsetLength = 0
1097-
$offsetInLine = 0
1098-
}
1090+
$offsetLength = 0
1091+
$offsetInLine = 0
10991092
}
11001093
else {
11011094
$line = $myinv.Line

0 commit comments

Comments
 (0)