diff options
| author | Bond-009 <bond.009@outlook.com> | 2022-12-07 17:17:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-07 17:17:37 +0100 |
| commit | 584c80e323ac2a1386d86ff9f59e50daf174418e (patch) | |
| tree | 4dbb2861cb79cf418a76a4b8f364fdc5c62b56f7 /Emby.Drawing/ImageProcessor.cs | |
| parent | f3c57e6a0ae015dc51cf548a0380d1bed33959c2 (diff) | |
| parent | 227aa0540bf0d6c00848b0efb8a5e0ece86c7412 (diff) | |
Merge pull request #8547 from Bond-009/net7
Diffstat (limited to 'Emby.Drawing/ImageProcessor.cs')
| -rw-r--r-- | Emby.Drawing/ImageProcessor.cs | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/Emby.Drawing/ImageProcessor.cs b/Emby.Drawing/ImageProcessor.cs index d2c430415..5a49e876a 100644 --- a/Emby.Drawing/ImageProcessor.cs +++ b/Emby.Drawing/ImageProcessor.cs @@ -503,20 +503,9 @@ namespace Emby.Drawing /// </exception> public string GetCachePath(string path, string uniqueName, string fileExtension) { - if (string.IsNullOrEmpty(path)) - { - throw new ArgumentNullException(nameof(path)); - } - - if (string.IsNullOrEmpty(uniqueName)) - { - throw new ArgumentNullException(nameof(uniqueName)); - } - - if (string.IsNullOrEmpty(fileExtension)) - { - throw new ArgumentNullException(nameof(fileExtension)); - } + ArgumentException.ThrowIfNullOrEmpty(path); + ArgumentException.ThrowIfNullOrEmpty(uniqueName); + ArgumentException.ThrowIfNullOrEmpty(fileExtension); var filename = uniqueName.GetMD5() + fileExtension; |
