Remove custom ToArray extension

This commit is contained in:
Bond_009
2018-12-28 16:48:26 +01:00
parent a86b71899e
commit 6e5d2aadaa
59 changed files with 137 additions and 178 deletions

View File

@@ -706,7 +706,7 @@ namespace Emby.Server.Implementations.Networking
public async Task<IpAddressInfo[]> GetHostAddressesAsync(string host)
{
var addresses = await Dns.GetHostAddressesAsync(host).ConfigureAwait(false);
return addresses.Select(ToIpAddressInfo).ToArray(addresses.Length);
return addresses.Select(ToIpAddressInfo).ToArray();
}
/// <summary>