I'm glad you fixed the bad indentation here, it makes the code much more readable.

But it is better if commits to fix indentation / code style are separated from commits that make logical changes to the code.