diff --git a/.changeset/blue-rings-repeat.md b/.changeset/blue-rings-repeat.md new file mode 100644 index 0000000000000..e1f2d90649319 --- /dev/null +++ b/.changeset/blue-rings-repeat.md @@ -0,0 +1,5 @@ +--- +'@eth-optimism/l2geth': patch +--- + +Style fix in the sync service diff --git a/l2geth/rollup/sync_service.go b/l2geth/rollup/sync_service.go index 17044e2e3ad07..a2cfbe5d5b790 100644 --- a/l2geth/rollup/sync_service.go +++ b/l2geth/rollup/sync_service.go @@ -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