diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2022-10-07 07:50:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-07 07:50:39 +0200 |
| commit | 719e5eae16a3488de449a5b2a7c56132c8f1e5c1 (patch) | |
| tree | 0eb900ce94fb549433274522424dda8617386f4b /MediaBrowser.Model/Cryptography/PasswordHash.cs | |
| parent | 9ff918cb142f837bd55e1f87aba3f68f7de295e4 (diff) | |
| parent | f5613add1af9e789a7c16f6f631cccd329d5841a (diff) | |
Merge pull request #8503 from Bond-009/ThrowIfNull
Diffstat (limited to 'MediaBrowser.Model/Cryptography/PasswordHash.cs')
| -rw-r--r-- | MediaBrowser.Model/Cryptography/PasswordHash.cs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/MediaBrowser.Model/Cryptography/PasswordHash.cs b/MediaBrowser.Model/Cryptography/PasswordHash.cs index eec541041..32a34d23c 100644 --- a/MediaBrowser.Model/Cryptography/PasswordHash.cs +++ b/MediaBrowser.Model/Cryptography/PasswordHash.cs @@ -29,10 +29,7 @@ namespace MediaBrowser.Model.Cryptography public PasswordHash(string id, byte[] hash, byte[] salt, Dictionary<string, string> parameters) { - if (id == null) - { - throw new ArgumentNullException(nameof(id)); - } + ArgumentNullException.ThrowIfNull(id); if (id.Length == 0) { |
