Removed unnecessary else

This commit is contained in:
Dev 2024-05-30 16:07:12 +01:00
parent a8b2cb8f31
commit 3120ab8f91

View File

@ -51,15 +51,13 @@ public class JsonFileIntakeReader : IIntakeReader
return true; 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)) if (LoggerFactory.GetInstance().CanBeLogged(LogLevel.Warning))