We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43d460b commit 9af3981Copy full SHA for 9af3981
1 file changed
src/FunctionalLiving.Api/Infrastructure/WaitFor.cs
@@ -30,7 +30,7 @@ public static async Task SeqToBecomeAvailable(
30
.GetSection("Serilog:WriteTo")
31
.Get<WriteTo[]>();
32
33
- var seq = writeTos.SingleOrDefault(to => "Seq".Equals(to.Name, StringComparison.InvariantCultureIgnoreCase));
+ var seq = writeTos?.SingleOrDefault(to => "Seq".Equals(to.Name, StringComparison.InvariantCultureIgnoreCase));
34
if (seq == null)
35
return;
36
0 commit comments