Browse Source

Apply suggestions from code review

Co-authored-by: Cody Robibero <cody@robibe.ro>
Nyanmisaka 1 year ago
parent
commit
3b12dc6d7a
1 changed files with 5 additions and 3 deletions
  1. 5 3
      Jellyfin.Api/Helpers/HlsCodecStringHelpers.cs

+ 5 - 3
Jellyfin.Api/Helpers/HlsCodecStringHelpers.cs

@@ -227,11 +227,13 @@ public static class HlsCodecStringHelpers
             bitDepth = 8;
             bitDepth = 8;
         }
         }
 
 
-        result.Append("." + level)
-            .Append(tierFlag ? "H" : "M");
+        result.Append('.')
+            .Append(level)
+            .Append(tierFlag ? 'H' : 'M');
 
 
         string bitDepthD2 = bitDepth.ToString("D2", CultureInfo.InvariantCulture);
         string bitDepthD2 = bitDepth.ToString("D2", CultureInfo.InvariantCulture);
-        result.Append("." + bitDepthD2);
+        result.Append('.')
+            .Append(bitDepthD2);
 
 
         return result.ToString();
         return result.ToString();
     }
     }