Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Commit

Permalink
fix staticcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Jun 2, 2021
1 parent 4526ac2 commit be9d9ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mock/centralized_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

cid "github.com/ipfs/go-cid"
"github.com/ipfs/go-cid"
delay "github.com/ipfs/go-ipfs-delay"
u "github.com/ipfs/go-ipfs-util"

Expand Down Expand Up @@ -44,8 +44,8 @@ func TestClientFindProviders(t *testing.T) {

providersFromClient := client.FindProvidersAsync(context.Background(), k, max)
isInClient := false
for pi := range providersFromClient {
if pi.ID == pi.ID { // <-- typo?
for p := range providersFromClient {
if p.ID == pi.ID() {
isInClient = true
}
}
Expand Down

0 comments on commit be9d9ed

Please sign in to comment.