mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-21 16:25:28 +03:00
Enable nullable reference types for Emby.Server.Implementations
This commit is contained in:
@@ -1762,9 +1762,9 @@ namespace Jellyfin.Api.Controllers
|
||||
|
||||
private static FileSystemMetadata? GetLastTranscodingFile(string playlist, string segmentExtension, IFileSystem fileSystem)
|
||||
{
|
||||
var folder = Path.GetDirectoryName(playlist);
|
||||
var folder = Path.GetDirectoryName(playlist) ?? throw new ArgumentException("Path can't be a root directory.", nameof(playlist));
|
||||
|
||||
var filePrefix = Path.GetFileNameWithoutExtension(playlist) ?? string.Empty;
|
||||
var filePrefix = Path.GetFileNameWithoutExtension(playlist);
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user