Increase readability, fix indentation

This PR improves readability by removing a ternary statement and fixes an indentation issue along the way.