Apply suggestions from code review

Co-Authored-By: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
Vasily
2020-02-27 16:02:18 +03:00
committed by GitHub
parent 8e20d2e931
commit d1670f8180
2 changed files with 3 additions and 3 deletions

View File

@@ -33,7 +33,7 @@ namespace MediaBrowser.Controller.Sorting
var thatChunk = new StringBuilder();
bool thisNumeric = char.IsDigit(thisCh), thatNumeric = char.IsDigit(thatCh);
while ((thisMarker < s1.Length) && (char.IsDigit(thisCh) == thisNumeric))
while (thisMarker < s1.Length && char.IsDigit(thisCh) == thisNumeric)
{
thisChunk.Append(thisCh);
thisMarker++;
@@ -44,7 +44,7 @@ namespace MediaBrowser.Controller.Sorting
}
}
while ((thatMarker < s2.Length) && (char.IsDigit(thatCh) == thatNumeric))
while (thatMarker < s2.Length && char.IsDigit(thatCh) == thatNumeric)
{
thatChunk.Append(thatCh);
thatMarker++;