mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-26 10:44:50 +03:00
Enable nullable reference types for Emby.Server.Implementations
This commit is contained in:
@@ -140,8 +140,10 @@ namespace Emby.Server.Implementations.ScheduledTasks
|
||||
previouslyFailedImages.Add(key);
|
||||
|
||||
var parentPath = Path.GetDirectoryName(failHistoryPath);
|
||||
|
||||
Directory.CreateDirectory(parentPath);
|
||||
if (parentPath != null)
|
||||
{
|
||||
Directory.CreateDirectory(parentPath);
|
||||
}
|
||||
|
||||
string text = string.Join('|', previouslyFailedImages);
|
||||
File.WriteAllText(failHistoryPath, text);
|
||||
|
||||
Reference in New Issue
Block a user