The Free Software Media System - Server Backend & API
Convert CanLaunchWebBrowser to expression body
Patrick Barron8898012121e9
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.csindex c9720de1a5..2e7386bf32 100644--- a/Emby.Server.Implementations/ApplicationHost.cs+++ b/Emby.Server.Implementations/ApplicationHost.cs@@ -187,23 +187,9 @@ namespace Emby.Server.Implementationspublic bool CoreStartupHasCompleted { get; private set; }- public virtual bool CanLaunchWebBrowser- {- get- {- if (!Environment.UserInteractive)- {- return false;- }-- if (_startupOptions.IsService)- {- return false;- }-- return OperatingSystem.IsWindows() || OperatingSystem.IsMacOS();- }- }+ public virtual bool CanLaunchWebBrowser => Environment.UserInteractive+ && !_startupOptions.IsService+ && (OperatingSystem.IsWindows() || OperatingSystem.IsMacOS());/// <summary>/// Gets the <see cref="INetworkManager"/> singleton instance.