From 33d07a8282116faba336a89cdfc52a809437132d Mon Sep 17 00:00:00 2001 From: Thibaud Desodt Date: Mon, 16 Oct 2017 07:43:21 +0200 Subject: [PATCH] Get rid of "possible multiple enumerations" warning --- src/Serilog/Settings/KeyValuePairs/KeyValuePairSettings.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Serilog/Settings/KeyValuePairs/KeyValuePairSettings.cs b/src/Serilog/Settings/KeyValuePairs/KeyValuePairSettings.cs index b9ec1f059..69c619efd 100644 --- a/src/Serilog/Settings/KeyValuePairs/KeyValuePairSettings.cs +++ b/src/Serilog/Settings/KeyValuePairs/KeyValuePairSettings.cs @@ -148,7 +148,7 @@ where matchCallables.IsMatch(wt.Key) if (callableDirectives.Any()) { - var configurationAssemblies = LoadConfigurationAssemblies(directives); + var configurationAssemblies = LoadConfigurationAssemblies(directives).ToList(); foreach (var receiverGroup in callableDirectives.GroupBy(d => d.ReceiverType)) {