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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -392,7 +392,7 @@ namespace MediaBrowser.Controller.Entities
var thisChunk = new StringBuilder();
bool isNumeric = char.IsDigit(thisCh);
while ((thisMarker < s1.Length) && (char.IsDigit(thisCh) == isNumeric))
while (thisMarker < s1.Length && char.IsDigit(thisCh) == isNumeric)
{
thisChunk.Append(thisCh);
thisMarker++;

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++;