From c1d2f1243178403aebfdeaaee446b2ce0d5142d1 Mon Sep 17 00:00:00 2001 From: Vincent Serpoul Date: Thu, 21 Sep 2017 12:08:42 +0800 Subject: [PATCH] common: more obvious error silencing --- common/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/types.go b/common/types.go index 284929e084..b6ea1f64c6 100644 --- a/common/types.go +++ b/common/types.go @@ -226,7 +226,7 @@ func (a Address) Hash() Hash { return BytesToHash(a[:]) } func (a Address) Hex() string { unchecksummed := hex.EncodeToString(a[:]) sha := sha3.NewKeccak256() - sha.Write([]byte(unchecksummed)) + _, _ = sha.Write([]byte(unchecksummed)) hash := sha.Sum(nil) result := []byte(unchecksummed)