REFACTOR: Reformat code.

This commit is contained in:
2017-12-19 20:33:03 +00:00
parent 77edc7c91c
commit e6f6ace80b
704 changed files with 82627 additions and 83641 deletions

View File

@@ -87,10 +87,7 @@ namespace DiscImageChef.Checksums
_md5Provider.TransformFinalBlock(new byte[0], 0, 0);
StringBuilder md5Output = new StringBuilder();
for(int i = 0; i < _md5Provider.Hash.Length; i++)
{
md5Output.Append(_md5Provider.Hash[i].ToString("x2"));
}
for(int i = 0; i < _md5Provider.Hash.Length; i++) { md5Output.Append(_md5Provider.Hash[i].ToString("x2")); }
return md5Output.ToString();
}
@@ -118,10 +115,7 @@ namespace DiscImageChef.Checksums
hash = _md5Provider.ComputeHash(fileStream);
StringBuilder md5Output = new StringBuilder();
for(int i = 0; i < hash.Length; i++)
{
md5Output.Append(hash[i].ToString("x2"));
}
for(int i = 0; i < hash.Length; i++) { md5Output.Append(hash[i].ToString("x2")); }
fileStream.Close();
@@ -139,10 +133,7 @@ namespace DiscImageChef.Checksums
hash = _md5Provider.ComputeHash(data, 0, (int)len);
StringBuilder md5Output = new StringBuilder();
for(int i = 0; i < hash.Length; i++)
{
md5Output.Append(hash[i].ToString("x2"));
}
for(int i = 0; i < hash.Length; i++) { md5Output.Append(hash[i].ToString("x2")); }
return md5Output.ToString();
}
@@ -157,5 +148,4 @@ namespace DiscImageChef.Checksums
return Data(data, (uint)data.Length, out hash);
}
}
}
}