Skip to content

Commit

Permalink
fix: golang lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rootulp committed Nov 15, 2024
1 parent d7d2c0e commit 7c4c93c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion proof.go
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ func (proof Proof) VerifySubtreeRootInclusion(nth *NmtHasher, subtreeRoots [][]b
}

if len(ranges) == 0 {
return nil, fmt.Errorf(fmt.Sprintf("expected to have a subtree root for range [%d, %d)", start, end))
return nil, fmt.Errorf("expected to have a subtree root for range [%d, %d)", start, end)
}

if ranges[0].Start == start && ranges[0].End == end {
Expand Down
1 change: 0 additions & 1 deletion subrootpaths_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ func TestPathGeneration(t *testing.T) {
}

for _, tc := range tests {
tc := tc
t.Run(tc.desc, func(t *testing.T) {
paths, err := GetSubrootPaths(tc.input.squareSize, tc.input.startNode, tc.input.length)
if !reflect.DeepEqual(pathResult(paths), tc.want) {
Expand Down

0 comments on commit 7c4c93c

Please sign in to comment.