Use four spaces for tabulation.
Moved an assignment within the corresponding guard, since it was superfluous unless the guard was triggered.