Skip to content

Commit 87af91c

Browse files
committed
Update Extensions.cs
1 parent 3c57850 commit 87af91c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Verify/Extensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ public static void FilterLines(this StringBuilder input, Func<string, bool> remo
168168
input.AppendLineN(line);
169169
}
170170

171-
if (input.Length > 0 &&
172-
!theString.EndsWith('\n'))
171+
var endsWithNewLine = theString.EndsWith('\n');
172+
if (input.Length > 0 && !endsWithNewLine)
173173
{
174174
input.Length -= 1;
175175
}

0 commit comments

Comments
 (0)