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:
@@ -88,9 +88,7 @@ namespace DiscImageChef.Checksums
|
||||
StringBuilder sha256Output = new StringBuilder();
|
||||
|
||||
for(int i = 0; i < sha256Provider.Hash.Length; i++)
|
||||
{
|
||||
sha256Output.Append(sha256Provider.Hash[i].ToString("x2"));
|
||||
}
|
||||
|
||||
return sha256Output.ToString();
|
||||
}
|
||||
@@ -118,7 +116,7 @@ namespace DiscImageChef.Checksums
|
||||
hash = sha256Provider.ComputeHash(fileStream);
|
||||
StringBuilder sha256Output = new StringBuilder();
|
||||
|
||||
for(int i = 0; i < hash.Length; i++) { sha256Output.Append(hash[i].ToString("x2")); }
|
||||
for(int i = 0; i < hash.Length; i++) sha256Output.Append(hash[i].ToString("x2"));
|
||||
|
||||
fileStream.Close();
|
||||
|
||||
@@ -136,7 +134,7 @@ namespace DiscImageChef.Checksums
|
||||
hash = sha256Provider.ComputeHash(data, 0, (int)len);
|
||||
StringBuilder sha256Output = new StringBuilder();
|
||||
|
||||
for(int i = 0; i < hash.Length; i++) { sha256Output.Append(hash[i].ToString("x2")); }
|
||||
for(int i = 0; i < hash.Length; i++) sha256Output.Append(hash[i].ToString("x2"));
|
||||
|
||||
return sha256Output.ToString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user