linting: moar fixes

This commit is contained in:
Zach Ramsay
2017-10-03 19:11:55 -04:00
committed by Ethan Buchman
parent d7cb291fb2
commit a15c7f221d
8 changed files with 14 additions and 8 deletions

View File

@ -7,7 +7,7 @@ import (
// doubleSha256 calculates sha256(sha256(b)) and returns the resulting bytes.
func doubleSha256(b []byte) []byte {
hasher := sha256.New()
_, _ := hasher.Write(b) // error ignored
_, _ = hasher.Write(b) // error ignored
sum := hasher.Sum(nil)
hasher.Reset()
_, _ = hasher.Write(sum) // error ignored