accounts/abi/bind: remove unused err set and check (#29269)

accounts/abi: remove unused err set and check
pull/29275/head
SanYe 6 months ago committed by GitHub
parent 40cac1d0e2
commit ba2dd9385c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 7
      accounts/abi/bind/base.go

@ -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:
@ -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
}

Loading…
Cancel
Save