mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
REFACTOR: Replace if statement with null-propagating code.
This commit is contained in:
@@ -124,11 +124,9 @@ namespace DiscImageChef.Core.Logging
|
||||
|
||||
public void Close()
|
||||
{
|
||||
if(logSw == null) return;
|
||||
|
||||
logSw.WriteLine("######################################################");
|
||||
logSw.WriteLine("End logging at {0}", DateTime.Now);
|
||||
logSw.Close();
|
||||
logSw?.WriteLine("######################################################");
|
||||
logSw?.WriteLine("End logging at {0}", DateTime.Now);
|
||||
logSw?.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user