From 1c3449c19d7223cdfe085ebaacc99d299124d7da Mon Sep 17 00:00:00 2001 From: Thibaud DESODT Date: Tue, 24 Oct 2017 07:01:41 +0200 Subject: [PATCH] Review: No need to create a ReadOnlyDictionary after .ToDictionary() --- src/Serilog/Configuration/LoggerSettingsConfiguration.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Serilog/Configuration/LoggerSettingsConfiguration.cs b/src/Serilog/Configuration/LoggerSettingsConfiguration.cs index cfde0fa1e..3b40ca44d 100644 --- a/src/Serilog/Configuration/LoggerSettingsConfiguration.cs +++ b/src/Serilog/Configuration/LoggerSettingsConfiguration.cs @@ -55,8 +55,7 @@ public LoggerConfiguration KeyValuePairs(IEnumerable(settings.ToDictionary(x => x.Key, x => x.Value)); - return Settings(new KeyValuePairSettings(settingsDictionary)); + return Settings(new KeyValuePairSettings(settings.ToDictionary(x => x.Key, x => x.Value))); } } }