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

accounts/abi: remove unused err set and check
This commit is contained in:
SanYe 2024-03-15 17:46:22 +08:00 committed by GitHub
parent 40cac1d0e2
commit ba2dd9385c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -461,7 +461,7 @@ func (c *BoundContract) FilterLogs(opts *FilterOpts, name string, query ...[]int
if err != nil { if err != nil {
return nil, nil, err 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 { for _, log := range buff {
select { select {
case logs <- log: case logs <- log:
@ -470,11 +470,8 @@ func (c *BoundContract) FilterLogs(opts *FilterOpts, name string, query ...[]int
} }
} }
return nil return nil
}), nil })
if err != nil {
return nil, nil, err
}
return logs, sub, nil return logs, sub, nil
} }