mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-11 18:20:23 +01:00
Merge pull request #6083 from Bond-009/nullable4
Enable nullable reference types for Emby.Server.Implementations
This commit is contained in:
@@ -1760,9 +1760,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