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
|
||||
sha1Provider.TransformFinalBlock(new byte[0], 0, 0);
|
||||
StringBuilder sha1Output = new StringBuilder();
|
||||
|
||||
for(int i = 0; i < sha1Provider.Hash.Length; i++)
|
||||
{
|
||||
sha1Output.Append(sha1Provider.Hash[i].ToString("x2"));
|
||||
}
|
||||
for(int i = 0; i < sha1Provider.Hash.Length; i++) sha1Output.Append(sha1Provider.Hash[i].ToString("x2"));
|
||||
|
||||
return sha1Output.ToString();
|
||||
}
|
||||
@@ -118,7 +115,7 @@ namespace DiscImageChef.Checksums
|
||||
hash = sha1Provider.ComputeHash(fileStream);
|
||||
StringBuilder sha1Output = new StringBuilder();
|
||||
|
||||
for(int i = 0; i < hash.Length; i++) { sha1Output.Append(hash[i].ToString("x2")); }
|
||||
for(int i = 0; i < hash.Length; i++) sha1Output.Append(hash[i].ToString("x2"));
|
||||
|
||||
fileStream.Close();
|
||||
|
||||
@@ -136,7 +133,7 @@ namespace DiscImageChef.Checksums
|
||||
hash = sha1Provider.ComputeHash(data, 0, (int)len);
|
||||
StringBuilder sha1Output = new StringBuilder();
|
||||
|
||||
for(int i = 0; i < hash.Length; i++) { sha1Output.Append(hash[i].ToString("x2")); }
|
||||
for(int i = 0; i < hash.Length; i++) sha1Output.Append(hash[i].ToString("x2"));
|
||||
|
||||
return sha1Output.ToString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user