The question to ask yourself is, "do these iterations improve the code, and why couldn't I see those, myself?"
Racing to complete tasks can often introduce new problems.
It seems to me your senior colleague wants a level of "quality" that you don't appreciate.
Today it's whitespace & alignment; tomorrow it's just this once use of "goto" for expediency.
Instead of being annoyed, try to learn from the more experienced mentor.
Late addition
Back when my body was more able-bodied, I was fortunate to add some ocean sailing to my CV. The salty-dog captain corrected my speech more than once. Using only wind, waves and currents, true sailors, he said, never sail to a port, but sail toward one.
System develop is, by definition, iterative; shoring-up foundations while advancing.
If there's one bee-line straight to a goal, it's called "typing", not "development".