diff --git a/DnsServerCore/Dns/Zones/CacheZone.cs b/DnsServerCore/Dns/Zones/CacheZone.cs index 7f03b9c0..466cca78 100644 --- a/DnsServerCore/Dns/Zones/CacheZone.cs +++ b/DnsServerCore/Dns/Zones/CacheZone.cs @@ -194,10 +194,9 @@ namespace DnsServerCore.Dns.Zones return anyRecords; } - else if (_entries.TryGetValue(type, out IReadOnlyList existingRecords)) - { + + if (_entries.TryGetValue(type, out IReadOnlyList existingRecords)) return FilterExpiredRecords(type, existingRecords, serveStale, filterSpecialCacheRecords); - } return Array.Empty(); }