consensus/ethash: remove unnecessary variable definition (#22512)

pull/22537/head
jacksoom 4 years ago committed by GitHub
parent 345890a558
commit d50e9d24be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      consensus/ethash/ethash.go

@ -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 {
@ -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

Loading…
Cancel
Save