Minor fixes to address style issues

This commit is contained in:
Phallacy
2019-03-05 23:45:05 -08:00
parent 2c26517172
commit bef665be36
3 changed files with 16 additions and 20 deletions

View File

@@ -100,13 +100,14 @@ namespace MediaBrowser.Model.Cryptography
public static byte[] ConvertFromByteString(string byteString)
{
List<byte> Bytes = new List<byte>();
List<byte> bytes = new List<byte>();
for (int i = 0; i < byteString.Length; i += 2)
{
Bytes.Add(Convert.ToByte(byteString.Substring(i, 2),16));
// TODO: NetStandard2.1 switch this to use a span instead of a substring.
bytes.Add(Convert.ToByte(byteString.Substring(i, 2),16));
}
return Bytes.ToArray();
return bytes.ToArray();
}
public static string ConvertToByteString(byte[] bytes)