소스 검색

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

Co-authored-by: Cody Robibero <cody@robibe.ro>
BaronGreenback 5 년 전
부모
커밋
fbd02a493b
1개의 변경된 파일1개의 추가작업 그리고 6개의 파일을 삭제
  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/>
         /// <inheritdoc/>
         public List<PhysicalAddress> GetMacAddresses()
         public List<PhysicalAddress> GetMacAddresses()
         {
         {
-            if (_macAddresses == null)
-            {
-                _macAddresses = GetMacAddressesInternal().ToList();
-            }
-
-            return _macAddresses;
+            return _macAddresses ??= GetMacAddressesInternal().ToList();
         }
         }
 
 
         /// <inheritdoc/>
         /// <inheritdoc/>