Apply suggestions from code review

Co-authored-by: Cody Robibero <cody@robibe.ro>
This commit is contained in:
Bond-009 2021-03-25 18:53:36 +01:00 committed by GitHub
parent c2cd7fa0b2
commit 4cea6d9ccf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;