Commit 13524da4 authored by Mark Tyneway's avatar Mark Tyneway Committed by GitHub

l2geth: quick style fix (#2394)

Co-authored-by: default avatarmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent d040a8d9
---
'@eth-optimism/l2geth': patch
---
Style fix in the sync service
......@@ -878,8 +878,8 @@ func (s *SyncService) applyTransactionToTip(tx *types.Transaction) error {
// the case where the index is updated but the
// transaction isn't yet added to the chain
s.SetLatestIndex(tx.GetMeta().Index)
if tx.GetMeta().QueueIndex != nil {
s.SetLatestEnqueueIndex(tx.GetMeta().QueueIndex)
if queueIndex := tx.GetMeta().QueueIndex; queueIndex != nil {
s.SetLatestEnqueueIndex(queueIndex)
}
// The index was set above so it is safe to dereference
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment