Code revie

This commit is contained in:
David
2020-12-27 11:15:46 +01:00
parent f73bb92ce3
commit 21fd124bca
3 changed files with 6 additions and 6 deletions

View File

@@ -151,7 +151,7 @@ namespace Emby.Server.Implementations.ScheduledTasks
}
else
{
_logger.LogDebug("Scheduled Task history file {path} is empty. Skipping deserialization.", path);
_logger.LogDebug("Scheduled Task history file {Path} is empty. Skipping deserialization.", path);
}
}
catch (Exception ex)
@@ -577,8 +577,8 @@ namespace Emby.Server.Implementations.ScheduledTasks
Directory.CreateDirectory(Path.GetDirectoryName(path));
using FileStream stream = File.OpenWrite(path);
JsonSerializer.SerializeAsync(stream, triggers, _jsonOptions);
var json = JsonSerializer.Serialize(triggers, _jsonOptions);
File.WriteAllText(path, json);
}
/// <summary>