mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 09:34:44 +01:00
Use ArgumentException.ThrowIfNullOrEmpty
This commit is contained in:
@@ -210,10 +210,7 @@ namespace Emby.Server.Implementations.Plugins
|
||||
/// <param name="folder">Folder of the plugin.</param>
|
||||
public void ImportPluginFrom(string folder)
|
||||
{
|
||||
if (string.IsNullOrEmpty(folder))
|
||||
{
|
||||
throw new ArgumentNullException(nameof(folder));
|
||||
}
|
||||
ArgumentException.ThrowIfNullOrEmpty(folder);
|
||||
|
||||
// Load the plugin.
|
||||
var plugin = LoadManifest(folder);
|
||||
|
||||
Reference in New Issue
Block a user