No functional changes. Clean up the code by * returning early where possible * removing comments that just repeat what the code does * Make sure comments follow the style guidelines Pull Request: https://projects.blender.org/blender/blender/pulls/114851