mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
rm unneccessary var
This commit is contained in:
parent
4c5beb4670
commit
a463b32a4b
1 changed files with 1 additions and 2 deletions
|
|
@ -1764,8 +1764,7 @@ func (api *TransactionAPI) SendRawTransactionSync(ctx context.Context, input hex
|
|||
resetSettle(settleInterval)
|
||||
|
||||
case <-settleCh:
|
||||
r, getErr := api.GetTransactionReceipt(receiptCtx, hash)
|
||||
if r != nil && getErr == nil {
|
||||
if r, err := api.GetTransactionReceipt(receiptCtx, hash); err == nil && r != nil {
|
||||
return r, nil
|
||||
}
|
||||
resetSettle(settleInterval)
|
||||
|
|
|
|||
Loading…
Reference in a new issue