Update Emby.Server.Implementations/Networking/NetworkManager.cs

Co-authored-by: Cody Robibero <cody@robibe.ro>
This commit is contained in:
BaronGreenback
2020-06-01 09:57:48 +01:00
committed by GitHub
parent 455e464445
commit fbd02a493b

View File

@@ -123,12 +123,7 @@ namespace Emby.Server.Implementations.Networking
/// <inheritdoc/>
public List<PhysicalAddress> GetMacAddresses()
{
if (_macAddresses == null)
{
_macAddresses = GetMacAddressesInternal().ToList();
}
return _macAddresses;
return _macAddresses ??= GetMacAddressesInternal().ToList();
}
/// <inheritdoc/>