Skip to content

Commit

Permalink
Linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdee committed Apr 5, 2024
1 parent 69219c4 commit b0e5488
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/revive.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: revive
on:
push:
branches:
- master
pull_request:

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/setup-go@v3
with:
go-version: '1.20'
- uses: actions/checkout@v3
- uses: morphy2k/revive-action@v2
2 changes: 1 addition & 1 deletion merkletree.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func (t *MerkleTree) GenerateMultiProof(data [][]byte) (*MultiProof, error) {
return t.GenerateMultiProofWithIndices(indices)
}

// GenerateMultiProof generates the proof for multiple pieces of data.
// GenerateMultiProofWithIndices generates the proof for multiple pieces of data.
func (t *MerkleTree) GenerateMultiProofWithIndices(indices []uint64) (*MultiProof, error) {
hashes := make([][][]byte, len(indices))

Expand Down

0 comments on commit b0e5488

Please sign in to comment.