diff options
| author | BaronGreenback <jimcartlidge@yahoo.co.uk> | 2020-06-01 09:57:48 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-01 09:57:48 +0100 |
| commit | fbd02a493b3284f50a70380db866be02f5226c4e (patch) | |
| tree | 2aaccbd2936021a7d90d0840dd6a7a81fe7fa5e3 /Emby.Server.Implementations/Networking/NetworkManager.cs | |
| parent | 455e46444510bae9aeac544e9cd28735a40ce856 (diff) | |
Update Emby.Server.Implementations/Networking/NetworkManager.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
Diffstat (limited to 'Emby.Server.Implementations/Networking/NetworkManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Networking/NetworkManager.cs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Emby.Server.Implementations/Networking/NetworkManager.cs b/Emby.Server.Implementations/Networking/NetworkManager.cs index 35041569d..4b0c315c0 100644 --- a/Emby.Server.Implementations/Networking/NetworkManager.cs +++ b/Emby.Server.Implementations/Networking/NetworkManager.cs @@ -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/> |
