From ffca58cfbcb8e4d3fdad6f3bab0be69ed3c5310a Mon Sep 17 00:00:00 2001 From: Daniel Marbach Date: Tue, 2 Jul 2024 22:09:55 +0200 Subject: [PATCH] Remove unnecessary locals --- sdk/src/Core/Amazon.Runtime/Internal/Util/Logger.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sdk/src/Core/Amazon.Runtime/Internal/Util/Logger.cs b/sdk/src/Core/Amazon.Runtime/Internal/Util/Logger.cs index 4b3fcfd87430..0b5b678bbeaa 100644 --- a/sdk/src/Core/Amazon.Runtime/Internal/Util/Logger.cs +++ b/sdk/src/Core/Amazon.Runtime/Internal/Util/Logger.cs @@ -46,8 +46,7 @@ private Logger(Type type) { loggers = new List(3); #pragma warning disable - InternalLog4netLogger log4netLogger = new InternalLog4netLogger(type); - loggers.Add(log4netLogger); + loggers.Add(new InternalLog4netLogger(type)); #pragma warning restore } else @@ -56,8 +55,7 @@ private Logger(Type type) } loggers.Add(new InternalConsoleLogger(type)); - InternalSystemDiagnosticsLogger sdLogger = new InternalSystemDiagnosticsLogger(type); - loggers.Add(sdLogger); + loggers.Add(new InternalSystemDiagnosticsLogger(type)); ConfigureLoggers(); AWSConfigs.PropertyChanged += ConfigsChanged; }