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

Co-authored-by: Cody Robibero <cody@robibe.ro>
pull/3007/head
BaronGreenback 4 years ago committed by GitHub
parent 455e464445
commit fbd02a493b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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/>

Loading…
Cancel
Save