Commit 595d89c3 authored by Madhur Shrimal's avatar Madhur Shrimal

move else section outside

parent 47eeb69e
......@@ -417,10 +417,9 @@ func (l *L2OutputSubmitter) loop() {
l.log.Error("Failed to send proposal transaction", "err", err)
cancel()
break
} else {
l.metr.RecordL2BlocksProposed(output.BlockRef)
cancel()
}
l.metr.RecordL2BlocksProposed(output.BlockRef)
cancel()
case <-l.done:
return
......
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