diff --git a/Logger.cs b/Logger.cs index 9e768aa..4ed574a 100644 --- a/Logger.cs +++ b/Logger.cs @@ -181,13 +181,11 @@ public class Logger : ILogger Thread.Sleep(500); - if (RunningLogger is not null) - RunningLogger.Dispose(); + RunningLogger?.Dispose(); RunningLogger = null; - if (OpenedFile is not null) - OpenedFile.Close(); + OpenedFile?.Close(); }