From fa1d343430ecff479bee0652a7a000aed61f3f6f Mon Sep 17 00:00:00 2001 From: Jonathan Gillham Date: Mon, 14 Oct 2013 23:55:18 +0100 Subject: [PATCH] Removed extra local variable assignment from DoubleSha256. --- common.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common.go b/common.go index 21666892..1d2b37ac 100644 --- a/common.go +++ b/common.go @@ -176,6 +176,5 @@ func DoubleSha256(b []byte) []byte { sum := hasher.Sum(nil) hasher.Reset() hasher.Write(sum) - sum = hasher.Sum(nil) - return sum + return hasher.Sum(nil) }