Blender Git Commit Log
Git Commits -> Revision a34e7c3
Revision a34e7c3 by Julian Eisel (master) September 21, 2020, 13:03 (GMT) |
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. |
Commit Details:
Full Hash: a34e7c3e5d844fd2b9e628534e93892467a7897e
Parent Commit: 7883ccd
Lines Changed: +36, -33
1 Modified Path:
/source/blender/editors/interface/interface.c (+36, -33) (Diff)