aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/ApplicationHost.cs
diff options
context:
space:
mode:
authorNyanmisaka <nst799610810@gmail.com>2020-12-12 02:36:31 +0800
committerGitHub <noreply@github.com>2020-12-12 02:36:31 +0800
commitd701b67de11f8bfcadddcb4b02e9cd28d113f5d6 (patch)
treee3ee14de7fc97484c865b916ad92613a1c7553d1 /Emby.Server.Implementations/ApplicationHost.cs
parent41218c5613ea7a83804f7b8ee0b61d315db45c0c (diff)
Apply suggestions from code review
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
Diffstat (limited to 'Emby.Server.Implementations/ApplicationHost.cs')
-rw-r--r--Emby.Server.Implementations/ApplicationHost.cs14
1 files changed, 6 insertions, 8 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs
index d2f340cd3..1a47335ad 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;