mirror of https://github.com/vbatts/merkle.git
.: golint
This commit is contained in:
parent
3cc77c8073
commit
558c5d610d
|
@ -63,7 +63,7 @@ func (mh merkleHash) Root() *Node {
|
|||
func (mh *merkleHash) Sum(b []byte) []byte {
|
||||
var (
|
||||
curBlock = []byte{}
|
||||
offset int = 0
|
||||
offset int
|
||||
)
|
||||
if mh.partialLastNode {
|
||||
// if this is true, then we need to pop the last node
|
||||
|
@ -131,9 +131,9 @@ func (mh *merkleHash) Write(b []byte) (int, error) {
|
|||
|
||||
var (
|
||||
curBlock = make([]byte, mh.blockSize)
|
||||
numBytes int = 0
|
||||
numBytes int
|
||||
numWritten int
|
||||
offset int = 0
|
||||
offset int
|
||||
)
|
||||
if mh.lastBlock != nil && mh.lastBlockLen > 0 {
|
||||
// XXX off by one?
|
||||
|
|
Loading…
Reference in New Issue