From d701b67de11f8bfcadddcb4b02e9cd28d113f5d6 Mon Sep 17 00:00:00 2001 From: Nyanmisaka Date: Sat, 12 Dec 2020 02:36:31 +0800 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Claus Vium --- Emby.Server.Implementations/ApplicationHost.cs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs index d2f340cd3f..1a47335ad7 100644 --- a/Emby.Server.Implementations/ApplicationHost.cs +++ b/Emby.Server.Implementations/ApplicationHost.cs @@ -967,14 +967,12 @@ namespace Emby.Server.Implementations { return true; } - else - { - throw new FileNotFoundException( - string.Format( - CultureInfo.InvariantCulture, - "Certificate file '{0}' does not exist.", - newPath)); - } + + throw new FileNotFoundException( + string.Format( + CultureInfo.InvariantCulture, + "Certificate file '{0}' does not exist.", + newPath)); } return false;