aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common.Implementations/NetworkManagement/NetworkManager.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-04-10 11:45:15 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-04-10 11:45:15 -0400
commitd8263c70574c6cb27329e270aebe3ba231f5e9ce (patch)
tree2f5f49ccce26fb92634a3cf838b362d18acb16eb /MediaBrowser.Common.Implementations/NetworkManagement/NetworkManager.cs
parent7806ccd42f0535f077ab80228e16965d2172dc8a (diff)
resharper suggestions in common implementations
Diffstat (limited to 'MediaBrowser.Common.Implementations/NetworkManagement/NetworkManager.cs')
-rw-r--r--MediaBrowser.Common.Implementations/NetworkManagement/NetworkManager.cs6
1 files changed, 1 insertions, 5 deletions
diff --git a/MediaBrowser.Common.Implementations/NetworkManagement/NetworkManager.cs b/MediaBrowser.Common.Implementations/NetworkManagement/NetworkManager.cs
index d88b57be5..3c42d340b 100644
--- a/MediaBrowser.Common.Implementations/NetworkManagement/NetworkManager.cs
+++ b/MediaBrowser.Common.Implementations/NetworkManagement/NetworkManager.cs
@@ -308,11 +308,7 @@ namespace MediaBrowser.Common.Implementations.NetworkManagement
//check if we have an IPv6 or ports
if (values.Length <= 2) // ipv4 or hostname
{
- if (values.Length == 1)
- //no port is specified, default
- port = defaultport;
- else
- port = GetPort(values[1]);
+ port = values.Length == 1 ? defaultport : GetPort(values[1]);
//try to use the address as IPv4, otherwise get hostname
if (!IPAddress.TryParse(values[0], out ipaddy))