Skip to content

Commit

Permalink
gofmt again
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin2112 committed Jan 30, 2017
1 parent dc4a5f2 commit 610c38a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func RunLogIntegration(client trillian.TrillianLogClient, params TestParameters)

// Only do this if the batch size changes when halved
if params.queueBatchSize > 1 {
if err := checkConsistencyProof(consistParams, params.treeID, tree, client, params, int64(params.queueBatchSize / 2)); err != nil {
if err := checkConsistencyProof(consistParams, params.treeID, tree, client, params, int64(params.queueBatchSize/2)); err != nil {
return fmt.Errorf("log consistency for %v: proof checks failed (Non STH size): %v", consistParams, err)
}
}
Expand Down Expand Up @@ -405,7 +405,7 @@ func checkInclusionProofsAtIndex(index int64, logID int64, tree *merkle.InMemory
}

// Remember that the in memory tree uses 1 based leaf indices
path := tree.PathToRootAtSnapshot(index + 1, treeSize)
path := tree.PathToRootAtSnapshot(index+1, treeSize)

if err = compareLogAndTreeProof(resp.Proof, path); err != nil {
// The log and tree proof don't match, details in the error
Expand Down

0 comments on commit 610c38a

Please sign in to comment.