Apply suggestions from code review

Co-Authored-By: Claus Vium <cvium@users.noreply.github.com>
pull/2474/head
Vasily 5 years ago committed by GitHub
parent 8e20d2e931
commit d1670f8180
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

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

Loading…
Cancel
Save