aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasily <JustAMan@users.noreply.github.com>2020-02-27 16:02:18 +0300
committerGitHub <noreply@github.com>2020-02-27 16:02:18 +0300
commitd1670f81808a74865f8c4fb2c2a77ab01eb3bde9 (patch)
tree815f2b89c24ef994ac7a38e695b7593b3f3e4e5e
parent8e20d2e931b273b54ef369c9b75021ab04118e04 (diff)
Apply suggestions from code review
Co-Authored-By: Claus Vium <cvium@users.noreply.github.com>
-rw-r--r--MediaBrowser.Controller/Entities/BaseItem.cs2
-rw-r--r--MediaBrowser.Controller/Sorting/AlphanumComparator.cs4
2 files changed, 3 insertions, 3 deletions
diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.cs
index 09cdfc9ea..66de080a3 100644
--- a/MediaBrowser.Controller/Entities/BaseItem.cs
+++ b/MediaBrowser.Controller/Entities/BaseItem.cs
@@ -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++;
diff --git a/MediaBrowser.Controller/Sorting/AlphanumComparator.cs b/MediaBrowser.Controller/Sorting/AlphanumComparator.cs
index ad1eaf7bf..65dc120ca 100644
--- a/MediaBrowser.Controller/Sorting/AlphanumComparator.cs
+++ b/MediaBrowser.Controller/Sorting/AlphanumComparator.cs
@@ -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++;