mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2025-12-29 13:00:35 +00:00
minor refactoring
This commit is contained in:
@@ -194,10 +194,9 @@ namespace DnsServerCore.Dns.Zones
|
||||
|
||||
return anyRecords;
|
||||
}
|
||||
else if (_entries.TryGetValue(type, out IReadOnlyList<DnsResourceRecord> existingRecords))
|
||||
{
|
||||
|
||||
if (_entries.TryGetValue(type, out IReadOnlyList<DnsResourceRecord> existingRecords))
|
||||
return FilterExpiredRecords(type, existingRecords, serveStale, filterSpecialCacheRecords);
|
||||
}
|
||||
|
||||
return Array.Empty<DnsResourceRecord>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user