aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/ApplicationHost.cs
diff options
context:
space:
mode:
authorPhlogi <Phlogi@users.noreply.github.com>2019-03-25 21:43:50 +0100
committerGitHub <noreply@github.com>2019-03-25 21:43:50 +0100
commit1b03f078b92021b8f3c2e7c148f1e67debd27fac (patch)
treea0dbf1c5bd71649ad3c89fa61779f073ec863c93 /Emby.Server.Implementations/ApplicationHost.cs
parent4c8f8cf64cc81fb5f1bb32aeb8349ce38badf457 (diff)
No need to assign empty string.
Diffstat (limited to 'Emby.Server.Implementations/ApplicationHost.cs')
-rw-r--r--Emby.Server.Implementations/ApplicationHost.cs10
1 files changed, 4 insertions, 6 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs
index b5582ae4f..49da67292 100644
--- a/Emby.Server.Implementations/ApplicationHost.cs
+++ b/Emby.Server.Implementations/ApplicationHost.cs
@@ -1372,15 +1372,14 @@ namespace Emby.Server.Implementations
public async Task<SystemInfo> GetSystemInfo(CancellationToken cancellationToken)
{
var localAddress = await GetLocalApiUrl(cancellationToken).ConfigureAwait(false);
- var wanAddress = string.Empty;
if (string.IsNullOrEmpty(ServerConfigurationManager.Configuration.WanDdns))
{
- wanAddress = await GetWanApiUrlFromExternal(cancellationToken).ConfigureAwait(false);
+ var wanAddress = await GetWanApiUrlFromExternal(cancellationToken).ConfigureAwait(false);
}
else
{
- wanAddress = GetWanApiUrl(ServerConfigurationManager.Configuration.WanDdns);
+ var wanAddress = GetWanApiUrl(ServerConfigurationManager.Configuration.WanDdns);
}
return new SystemInfo
@@ -1431,15 +1430,14 @@ namespace Emby.Server.Implementations
public async Task<PublicSystemInfo> GetPublicSystemInfo(CancellationToken cancellationToken)
{
var localAddress = await GetLocalApiUrl(cancellationToken).ConfigureAwait(false);
- var wanAddress = string.Empty;
if (string.IsNullOrEmpty(ServerConfigurationManager.Configuration.WanDdns))
{
- wanAddress = await GetWanApiUrlFromExternal(cancellationToken).ConfigureAwait(false);
+ var wanAddress = await GetWanApiUrlFromExternal(cancellationToken).ConfigureAwait(false);
}
else
{
- wanAddress = GetWanApiUrl(ServerConfigurationManager.Configuration.WanDdns);
+ var wanAddress = GetWanApiUrl(ServerConfigurationManager.Configuration.WanDdns);
}
return new PublicSystemInfo
{