Zone: minor optimization changes.

This commit is contained in:
Shreyas Zare
2019-05-11 12:49:23 +05:30
parent cf5a6ec925
commit 7167d4f9c9

View File

@@ -517,6 +517,9 @@ namespace DnsServerCore
newRecords.Add(record);
}
if (records.Length == newRecords.Count)
return records;
if (newRecords.Count > 0)
return newRecords.ToArray();