aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErwin de Haan <EraYaN@users.noreply.github.com>2019-01-13 21:48:18 +0100
committerErwin de Haan <EraYaN@users.noreply.github.com>2019-01-13 21:48:18 +0100
commit23f5c1d90b8d1e8baac7c20fd01a391cacd5c60a (patch)
treebf43406550aa961a9f3f47950db3c7fa4fe6b6d9
parente8674464373c3635243953cded42fcd2aa87d196 (diff)
ReSharper format: 'out' parameter inlining
-rw-r--r--Emby.Server.Implementations/ApplicationHost.cs9
1 files changed, 3 insertions, 6 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs
index 5f3508441..5c410fe25 100644
--- a/Emby.Server.Implementations/ApplicationHost.cs
+++ b/Emby.Server.Implementations/ApplicationHost.cs
@@ -1799,8 +1799,7 @@ namespace Emby.Server.Implementations
return false;
}
- Version minRequiredVersion;
- if (minRequiredVersions.TryGetValue(filename, out minRequiredVersion))
+ if (minRequiredVersions.TryGetValue(filename, out var minRequiredVersion))
{
try
{
@@ -2015,8 +2014,7 @@ namespace Emby.Server.Implementations
address = address.Substring(index + 1);
}
- IpAddressInfo result;
- if (NetworkManager.TryParseIpAddress(address.Trim('/'), out result))
+ if (NetworkManager.TryParseIpAddress(address.Trim('/'), out var result))
{
return result;
}
@@ -2035,8 +2033,7 @@ namespace Emby.Server.Implementations
var apiUrl = GetLocalApiUrl(address);
apiUrl += "/system/ping";
- bool cachedResult;
- if (_validAddressResults.TryGetValue(apiUrl, out cachedResult))
+ if (_validAddressResults.TryGetValue(apiUrl, out var cachedResult))
{
return cachedResult;
}