فهرست منبع

Apply suggestions from code review

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
Nyanmisaka 4 سال پیش
والد
کامیت
d701b67de1
1فایلهای تغییر یافته به همراه6 افزوده شده و 8 حذف شده
  1. 6 8
      Emby.Server.Implementations/ApplicationHost.cs

+ 6 - 8
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;