Skip to content

Commit

Permalink
Merge pull request #95 from misha-tectonic/master
Browse files Browse the repository at this point in the history
Fix `go vet` failures
  • Loading branch information
liamsi authored Aug 14, 2018
2 parents 26179c2 + d4ff72c commit 5ee244d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions proof_range.go
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,6 @@ func (t *ImmutableTree) getRangeProof(keyStart, keyEnd []byte, limit int) (*Rang
// nolint
var innersq = []PathToLeaf(nil)
var inners = PathToLeaf(nil)
var lastDepth uint8 = 0
var leafCount = 1 // from left above.
var pathCount = 0
// var keys, values [][]byte defined as function outs.
Expand Down Expand Up @@ -435,7 +434,6 @@ func (t *ImmutableTree) getRangeProof(keyStart, keyEnd []byte, limit int) (*Rang
})
}
}
lastDepth = depth
return false
},
)
Expand Down
2 changes: 0 additions & 2 deletions util.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ func cpIncr(bz []byte) (ret []byte) {
ret[i] = byte(0x00)
if i == 0 {
return append(ret, 0x00)
// Overflow
return nil
}
}
return []byte{0x00}
Expand Down

0 comments on commit 5ee244d

Please sign in to comment.