Apply suggestions from code review

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
Nyanmisaka
2020-12-12 02:36:31 +08:00
committed by GitHub
parent 41218c5613
commit d701b67de1

View File

@@ -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;