Skip to content

Commit

Permalink
Get rid of "possible multiple enumerations" warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tsimbalar committed Oct 16, 2017
1 parent 4fd5b26 commit 33d07a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Serilog/Settings/KeyValuePairs/KeyValuePairSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down

0 comments on commit 33d07a8

Please sign in to comment.