Skip to content

Commit

Permalink
merkledb -- remove unneeded var declarations (#2269)
Browse files Browse the repository at this point in the history
  • Loading branch information
danlaine committed Nov 8, 2023
1 parent 683fcfa commit 22f3c89
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions x/sync/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,6 @@ func (c *client) GetRangeProof(
return nil, err
}

startKey := maybeBytesToMaybe(req.StartKey)
endKey := maybeBytesToMaybe(req.EndKey)

var rangeProof merkledb.RangeProof
if err := rangeProof.UnmarshalProto(&rangeProofProto); err != nil {
return nil, err
Expand All @@ -268,8 +265,8 @@ func (c *client) GetRangeProof(
ctx,
&rangeProof,
int(req.KeyLimit),
startKey,
endKey,
maybeBytesToMaybe(req.StartKey),
maybeBytesToMaybe(req.EndKey),
req.RootHash,
c.tokenSize,
); err != nil {
Expand Down

0 comments on commit 22f3c89

Please sign in to comment.