diff options
author | Julian Eisel <julian@blender.org> | 2020-09-21 16:03:02 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-09-21 16:03:02 +0300 |
commit | a34e7c3e5d844fd2b9e628534e93892467a7897e (patch) | |
tree | 789aa93890ff92da33beb7da75975ee58f344aee /release/scripts/modules/bl_i18n_utils/utils_spell_check.py | |
parent | 7883ccd29fe1dc37dff6c46ee0e9ba053444466d (diff) |
Cleanup (UI): Early-exit rather than having a big-ish conditional body
It's generally considered a better codestyle to check conditions early
and exit early when they are not met, over having most logic of a
function within a big `if`-block. Otherwise people have to go over the
entire block to see if there's possibly an `else` somewhere, or any
followup logic.
Diffstat (limited to 'release/scripts/modules/bl_i18n_utils/utils_spell_check.py')
0 files changed, 0 insertions, 0 deletions