Explorar o código

Remove redundant cast

Stepan Goremykin %!s(int64=2) %!d(string=hai) anos
pai
achega
8925390ad4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Emby.Server.Implementations/Net/SocketFactory.cs

+ 1 - 1
Emby.Server.Implementations/Net/SocketFactory.cs

@@ -83,7 +83,7 @@ namespace Emby.Server.Implementations.Net
             try
             {
                 var interfaceIndex = bindInterface.Index;
-                var interfaceIndexSwapped = (int)IPAddress.HostToNetworkOrder(interfaceIndex);
+                var interfaceIndexSwapped = IPAddress.HostToNetworkOrder(interfaceIndex);
 
                 socket.MulticastLoopback = false;
                 socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true);