From 3120ab8f91e7d7aaaea92992efb5d205f2fed733 Mon Sep 17 00:00:00 2001 From: Dev Date: Thu, 30 May 2024 16:07:12 +0100 Subject: [PATCH] Removed unnecessary `else` --- Process/Reader/Intake/JsonFileIntakeReader.cs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Process/Reader/Intake/JsonFileIntakeReader.cs b/Process/Reader/Intake/JsonFileIntakeReader.cs index e19beb3..40f100f 100644 --- a/Process/Reader/Intake/JsonFileIntakeReader.cs +++ b/Process/Reader/Intake/JsonFileIntakeReader.cs @@ -51,15 +51,13 @@ public class JsonFileIntakeReader : IIntakeReader return true; } - else - { - // Map dump limit reached, exit - if (LoggerFactory.GetInstance().CanBeLogged(LogLevel.Debug)) - LoggerFactory.GetInstance().Log($"Ignoring file {file} as the file cap for map {fi.Data.Id} has been reached", LogLevel.Debug); - basicInfo = null; - return false; - } + // Map dump limit reached, exit + if (LoggerFactory.GetInstance().CanBeLogged(LogLevel.Debug)) + LoggerFactory.GetInstance().Log($"Ignoring file {file} as the file cap for map {fi.Data.Id} has been reached", LogLevel.Debug); + basicInfo = null; + + return false; } if (LoggerFactory.GetInstance().CanBeLogged(LogLevel.Warning))