aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/Cryptography/PasswordHash.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2021-03-25 18:53:36 +0100
committerGitHub <noreply@github.com>2021-03-25 18:53:36 +0100
commit4cea6d9ccfa5bddaef27800aac1c125ae22747d7 (patch)
treee9aa5c2218d18c02d8bdeb04703368c02b11c823 /MediaBrowser.Common/Cryptography/PasswordHash.cs
parentc2cd7fa0b2441212ac0de16ffcef18883ee8c665 (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.cs4
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;