[heartbeat] Reindent code to make it legible