浏览代码

Apply suggestions from code review

Co-authored-by: Cody Robibero <cody@robibe.ro>
Bond-009 4 年之前
父节点
当前提交
4cea6d9ccf
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      MediaBrowser.Common/Cryptography/PasswordHash.cs

+ 2 - 2
MediaBrowser.Common/Cryptography/PasswordHash.cs

@@ -123,7 +123,7 @@ namespace MediaBrowser.Common.Cryptography
                     int splitIndex = parameter.IndexOf('=');
                     int splitIndex = parameter.IndexOf('=');
                     if (splitIndex == -1 || splitIndex == 0 || splitIndex == parameter.Length - 1)
                     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(
                     (parameters ??= new Dictionary<string, string>()).Add(
@@ -143,7 +143,7 @@ namespace MediaBrowser.Common.Cryptography
 
 
             if (nextSegment == 0)
             if (nextSegment == 0)
             {
             {
-                throw new FormatException($"Hash string contains an empty segment");
+                throw new FormatException("Hash string contains an empty segment");
             }
             }
 
 
             byte[] hash;
             byte[] hash;