Review querying
This commit is contained in:
parent
4db719d210
commit
f47f12eb94
1 changed files with 1 additions and 3 deletions
|
|
@ -142,7 +142,7 @@ public class PowerDnsHandler : ConnectionHandler
|
|||
|
||||
static async ValueTask<Reply> FindByName((AddressFamily Family, ReadOnlyMemory<char> Qname) query, DnsRepository repository, ILogger logger)
|
||||
{
|
||||
QueryResult[]? records = null;
|
||||
QueryResult[] records = [];
|
||||
|
||||
var qname = query.Qname.Trim().TrimEnd(".");
|
||||
if (qname.Span.IsWhiteSpace())
|
||||
|
|
@ -179,8 +179,6 @@ public class PowerDnsHandler : ConnectionHandler
|
|||
}
|
||||
|
||||
exitEmpty:
|
||||
records ??= [];
|
||||
|
||||
return new LookupReply(records);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue