Skip to content

Commit

Permalink
eth/protocols/snap: fix lint flaws in test
Browse files Browse the repository at this point in the history
  • Loading branch information
holiman committed May 10, 2022
1 parent 5d8b397 commit 8fbf0ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eth/protocols/snap/sort_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
package snap

import (
"bytes"
"fmt"
"testing"

"bytes"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/trie"
)
Expand All @@ -32,7 +32,7 @@ func hexToNibbles(s string) []byte {
var s2 []byte
for _, ch := range []byte(s) {
s2 = append(s2, '0')
s2 = append(s2, byte(ch))
s2 = append(s2, ch)
}
return common.Hex2Bytes(string(s2))
}
Expand Down Expand Up @@ -72,7 +72,7 @@ func TestRequestSorting(t *testing.T) {
paths = append(paths, sp)
pathsets = append(pathsets, tnps)
}
hashes, paths, pathsets = sortByAccountPath(hashes, paths)
_, paths, pathsets = sortByAccountPath(hashes, paths)
{
var b = new(bytes.Buffer)
for i := 0; i < len(paths); i++ {
Expand Down

0 comments on commit 8fbf0ad

Please sign in to comment.