mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-04-28 20:32:55 +00:00
core/txpool/legacypool: remove redundant nil check in Get (#34092)
Leftover from d40a255 when return type changed from *txpool.Transaction
to *types.Transaction.
This commit is contained in:
parent
5d0e18f775
commit
8a3a309fa9
1 changed files with 1 additions and 5 deletions
|
|
@ -998,11 +998,7 @@ func (pool *LegacyPool) Status(hash common.Hash) txpool.TxStatus {
|
||||||
|
|
||||||
// Get returns a transaction if it is contained in the pool and nil otherwise.
|
// Get returns a transaction if it is contained in the pool and nil otherwise.
|
||||||
func (pool *LegacyPool) Get(hash common.Hash) *types.Transaction {
|
func (pool *LegacyPool) Get(hash common.Hash) *types.Transaction {
|
||||||
tx := pool.get(hash)
|
return pool.get(hash)
|
||||||
if tx == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return tx
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// get returns a transaction if it is contained in the pool and nil otherwise.
|
// get returns a transaction if it is contained in the pool and nil otherwise.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue