Skip to content

Commit

Permalink
consensus/ethash: remove unnecessary variable definition (#22512)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksoom authored Mar 19, 2021
1 parent 345890a commit d50e9d2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions consensus/ethash/ethash.go
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,6 @@ func NewShared() *Ethash {

// Close closes the exit channel to notify all backend threads exiting.
func (ethash *Ethash) Close() error {
var err error
ethash.closeOnce.Do(func() {
// Short circuit if the exit channel is not allocated.
if ethash.remote == nil {
Expand All @@ -546,7 +545,7 @@ func (ethash *Ethash) Close() error {
close(ethash.remote.requestExit)
<-ethash.remote.exitCh
})
return err
return nil
}

// cache tries to retrieve a verification cache for the specified block number
Expand Down

0 comments on commit d50e9d2

Please sign in to comment.