Fix SonarCloud warnings

This commit is contained in:
854562
2026-06-23 18:32:47 +02:00
committed by GitHub
parent 94d5326411
commit c632417dda
2 changed files with 11 additions and 9 deletions
@@ -175,7 +175,7 @@ public class MediaStreamRepository : IMediaStreamRepository
var culture = _localization.FindLanguageInfo(dto.Language);
// Truncate at the first delimiter to avoid cluttered display names
dto.LocalizedLanguage = culture?.DisplayName is { } name
? name.Split(';', ',')[0].Trim()
? name.Split([';', ','])[0].Trim()
: null;
}