diff --git a/Netch/Utils/Utils.cs b/Netch/Utils/Utils.cs index b1b9e792..e84e2455 100644 --- a/Netch/Utils/Utils.cs +++ b/Netch/Utils/Utils.cs @@ -96,9 +96,7 @@ namespace Netch.Utils { var SHA256 = SHA256Managed.Create(); var fileStream = File.OpenRead(filePath); - var s = string.Empty; - SHA256.ComputeHash(fileStream).Select(b => s+=b.ToString("x2")); - return s; + return SHA256.ComputeHash(fileStream).Aggregate(string.Empty, (current, b) => current + b.ToString("x2")); } catch {