ReSharper format: 'out' parameter inlining
This commit is contained in:
parent
e867446437
commit
23f5c1d90b
|
@ -1799,8 +1799,7 @@ namespace Emby.Server.Implementations
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Version minRequiredVersion;
|
if (minRequiredVersions.TryGetValue(filename, out var minRequiredVersion))
|
||||||
if (minRequiredVersions.TryGetValue(filename, out minRequiredVersion))
|
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -2015,8 +2014,7 @@ namespace Emby.Server.Implementations
|
||||||
address = address.Substring(index + 1);
|
address = address.Substring(index + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
IpAddressInfo result;
|
if (NetworkManager.TryParseIpAddress(address.Trim('/'), out var result))
|
||||||
if (NetworkManager.TryParseIpAddress(address.Trim('/'), out result))
|
|
||||||
{
|
{
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -2035,8 +2033,7 @@ namespace Emby.Server.Implementations
|
||||||
var apiUrl = GetLocalApiUrl(address);
|
var apiUrl = GetLocalApiUrl(address);
|
||||||
apiUrl += "/system/ping";
|
apiUrl += "/system/ping";
|
||||||
|
|
||||||
bool cachedResult;
|
if (_validAddressResults.TryGetValue(apiUrl, out var cachedResult))
|
||||||
if (_validAddressResults.TryGetValue(apiUrl, out cachedResult))
|
|
||||||
{
|
{
|
||||||
return cachedResult;
|
return cachedResult;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user