Various cleanups (#14785)

This commit is contained in:
Bond-009
2025-09-12 21:58:23 +02:00
committed by GitHub
parent c02a24e32a
commit 8776a447d1
9 changed files with 18 additions and 17 deletions

View File

@@ -98,7 +98,7 @@ public sealed class SetupServer : IDisposable
var maxLevel = logEntry.LogLevel;
var stack = new Stack<StartupLogTopic>(children);
while (maxLevel != LogLevel.Error && stack.Count > 0 && (logEntry = stack.Pop()) != null) // error is the highest inherted error level.
while (maxLevel != LogLevel.Error && stack.Count > 0 && (logEntry = stack.Pop()) is not null) // error is the highest inherted error level.
{
maxLevel = maxLevel < logEntry.LogLevel ? logEntry.LogLevel : maxLevel;
foreach (var child in logEntry.Children)