mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
REFACTOR: Use preferred braces style.
This commit is contained in:
@@ -87,10 +87,7 @@ namespace DiscImageChef.Checksums
|
||||
ripemd160Provider.TransformFinalBlock(new byte[0], 0, 0);
|
||||
StringBuilder ripemd160Output = new StringBuilder();
|
||||
|
||||
for(int i = 0; i < ripemd160Provider.Hash.Length; i++)
|
||||
{
|
||||
ripemd160Output.Append(ripemd160Provider.Hash[i].ToString("x2"));
|
||||
}
|
||||
for(int i = 0; i < ripemd160Provider.Hash.Length; i++) ripemd160Output.Append(ripemd160Provider.Hash[i].ToString("x2"));
|
||||
|
||||
return ripemd160Output.ToString();
|
||||
}
|
||||
@@ -118,7 +115,7 @@ namespace DiscImageChef.Checksums
|
||||
hash = ripemd160Provider.ComputeHash(fileStream);
|
||||
StringBuilder ripemd160Output = new StringBuilder();
|
||||
|
||||
for(int i = 0; i < hash.Length; i++) { ripemd160Output.Append(hash[i].ToString("x2")); }
|
||||
for(int i = 0; i < hash.Length; i++) ripemd160Output.Append(hash[i].ToString("x2"));
|
||||
|
||||
fileStream.Close();
|
||||
|
||||
@@ -136,7 +133,7 @@ namespace DiscImageChef.Checksums
|
||||
hash = ripemd160Provider.ComputeHash(data, 0, (int)len);
|
||||
StringBuilder ripemd160Output = new StringBuilder();
|
||||
|
||||
for(int i = 0; i < hash.Length; i++) { ripemd160Output.Append(hash[i].ToString("x2")); }
|
||||
for(int i = 0; i < hash.Length; i++) ripemd160Output.Append(hash[i].ToString("x2"));
|
||||
|
||||
return ripemd160Output.ToString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user