Apply suggestions from code review
Co-Authored-By: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
parent
8e20d2e931
commit
d1670f8180
|
@ -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…
Reference in New Issue
Block a user