Explorar o código

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

Co-authored-by: Cody Robibero <cody@robibe.ro>
BaronGreenback %!s(int64=5) %!d(string=hai) anos
pai
achega
fbd02a493b
Modificáronse 1 ficheiros con 1 adicións e 6 borrados
  1. 1 6
      Emby.Server.Implementations/Networking/NetworkManager.cs

+ 1 - 6
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/>