Skip to content

Commit fc17971

Browse files
kumakichijorgemmsilva
authored andcommitted
accounts/abi/bind: remove unused err set and check (ethereum#29269)
accounts/abi: remove unused err set and check
1 parent c9d4cba commit fc17971

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

accounts/abi/bind/base.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ func (c *BoundContract) FilterLogs(opts *FilterOpts, name string, query ...[]int
461461
if err != nil {
462462
return nil, nil, err
463463
}
464-
sub, err := event.NewSubscription(func(quit <-chan struct{}) error {
464+
sub := event.NewSubscription(func(quit <-chan struct{}) error {
465465
for _, log := range buff {
466466
select {
467467
case logs <- log:
@@ -470,11 +470,8 @@ func (c *BoundContract) FilterLogs(opts *FilterOpts, name string, query ...[]int
470470
}
471471
}
472472
return nil
473-
}), nil
473+
})
474474

475-
if err != nil {
476-
return nil, nil, err
477-
}
478475
return logs, sub, nil
479476
}
480477

0 commit comments

Comments
 (0)