From 3b12dc6d7ae0984aa96929b89dfbeb73f55568d9 Mon Sep 17 00:00:00 2001 From: Nyanmisaka Date: Tue, 20 Jun 2023 04:18:55 +0800 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Cody Robibero --- Jellyfin.Api/Helpers/HlsCodecStringHelpers.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Jellyfin.Api/Helpers/HlsCodecStringHelpers.cs b/Jellyfin.Api/Helpers/HlsCodecStringHelpers.cs index ad1fce0f14..adb2486709 100644 --- a/Jellyfin.Api/Helpers/HlsCodecStringHelpers.cs +++ b/Jellyfin.Api/Helpers/HlsCodecStringHelpers.cs @@ -227,11 +227,13 @@ public static class HlsCodecStringHelpers bitDepth = 8; } - result.Append("." + level) - .Append(tierFlag ? "H" : "M"); + result.Append('.') + .Append(level) + .Append(tierFlag ? 'H' : 'M'); string bitDepthD2 = bitDepth.ToString("D2", CultureInfo.InvariantCulture); - result.Append("." + bitDepthD2); + result.Append('.') + .Append(bitDepthD2); return result.ToString(); }