Skip to content

Commit

Permalink
Run go vet in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
arlolra committed Jan 19, 2017
1 parent 6561941 commit 0bedfc6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ env:

script:
- test -z "$(go fmt ./...)"
- go vet ./...
- ./test_coverage.sh

after_success:
Expand Down
13 changes: 8 additions & 5 deletions merkletree/merkletree.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,14 @@ func (m *MerkleTree) Get(lookupIndex []byte) *AuthenticationPath {
case *userLeafNode:
pNode := nodePointer.(*userLeafNode)
authPath.Leaf = &ProofNode{
Level: pNode.level,
Index: pNode.index,
Value: pNode.value,
IsEmpty: false,
Commitment: &crypto.Commit{pNode.commitment.Salt, pNode.commitment.Value},
Level: pNode.level,
Index: pNode.index,
Value: pNode.value,
IsEmpty: false,
Commitment: &crypto.Commit{
Salt: pNode.commitment.Salt,
Value: pNode.commitment.Value,
},
}
if bytes.Equal(nodePointer.(*userLeafNode).index, lookupIndex) {
return authPath
Expand Down

0 comments on commit 0bedfc6

Please sign in to comment.