Skip to content

Commit

Permalink
remove an unused parameter in Selector.waitReady
Browse files Browse the repository at this point in the history
Found by unparam.
  • Loading branch information
mvdan committed Apr 22, 2019
1 parent dd67f50 commit 0f978e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sel.go
Expand Up @@ -220,10 +220,10 @@ func (s *Selector) waitReady(check func(context.Context, *Target, *cdp.Node) err
cur.RUnlock()

if check != nil {
for i, n := range nodes {
go func(i int, n *cdp.Node) {
for _, n := range nodes {
go func(n *cdp.Node) {
errc <- check(ctx, t, n)
}(i, n)
}(n)
}

var first error
Expand Down

0 comments on commit 0f978e0

Please sign in to comment.