From cc976c86a14f55381b204c9f2b033b54ccb90fef Mon Sep 17 00:00:00 2001 From: Mira <56395159+TheXorog@users.noreply.github.com> Date: Wed, 12 Oct 2022 14:44:32 +0200 Subject: [PATCH] Update Logger.cs --- Logger.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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(); }