diff options
| author | Bond-009 <bond.009@outlook.com> | 2021-03-25 18:53:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-25 18:53:36 +0100 |
| commit | 4cea6d9ccfa5bddaef27800aac1c125ae22747d7 (patch) | |
| tree | e9aa5c2218d18c02d8bdeb04703368c02b11c823 /MediaBrowser.Common/Cryptography/PasswordHash.cs | |
| parent | c2cd7fa0b2441212ac0de16ffcef18883ee8c665 (diff) | |
Apply suggestions from code review
Co-authored-by: Cody Robibero <cody@robibe.ro>
Diffstat (limited to 'MediaBrowser.Common/Cryptography/PasswordHash.cs')
| -rw-r--r-- | MediaBrowser.Common/Cryptography/PasswordHash.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Common/Cryptography/PasswordHash.cs b/MediaBrowser.Common/Cryptography/PasswordHash.cs index 81e980bf2..f2ecc4741 100644 --- a/MediaBrowser.Common/Cryptography/PasswordHash.cs +++ b/MediaBrowser.Common/Cryptography/PasswordHash.cs @@ -123,7 +123,7 @@ namespace MediaBrowser.Common.Cryptography int splitIndex = parameter.IndexOf('='); if (splitIndex == -1 || splitIndex == 0 || splitIndex == parameter.Length - 1) { - throw new FormatException($"Malformed parameter in password hash string"); + throw new FormatException("Malformed parameter in password hash string"); } (parameters ??= new Dictionary<string, string>()).Add( @@ -143,7 +143,7 @@ namespace MediaBrowser.Common.Cryptography if (nextSegment == 0) { - throw new FormatException($"Hash string contains an empty segment"); + throw new FormatException("Hash string contains an empty segment"); } byte[] hash; |
