Skip to content

Commit

Permalink
accounts/abi/bind: remove unused err set and check (ethereum#29269)
Browse files Browse the repository at this point in the history
accounts/abi: remove unused err set and check
  • Loading branch information
kumakichi committed Mar 15, 2024
1 parent 40cac1d commit ba2dd93
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions accounts/abi/bind/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ func (c *BoundContract) FilterLogs(opts *FilterOpts, name string, query ...[]int
if err != nil {
return nil, nil, err
}
sub, err := event.NewSubscription(func(quit <-chan struct{}) error {
sub := event.NewSubscription(func(quit <-chan struct{}) error {
for _, log := range buff {
select {
case logs <- log:
Expand All @@ -470,11 +470,8 @@ func (c *BoundContract) FilterLogs(opts *FilterOpts, name string, query ...[]int
}
}
return nil
}), nil
})

if err != nil {
return nil, nil, err
}
return logs, sub, nil
}

Expand Down

0 comments on commit ba2dd93

Please sign in to comment.