diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-07-03 15:52:32 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-07-03 17:15:00 +0300 |
commit | 7d0a0b8a6da0e1cd41a1b40971e7c803ed162963 (patch) | |
tree | 03ae0a0eab32e9d7101f78e4a2dc20f0c58af88b /source/blender/editors/armature/armature_utils.c | |
parent | f82e52ebc838b666c258090236f0323d0d4f6aee (diff) |
Cleanup: Editors/Armature, Clang-Tidy else-after-return fixes
This addresses warnings from Clang-Tidy's `readability-else-after-return`
rule in the `source/blender/editors/armature` module.
No functional changes.
Diffstat (limited to 'source/blender/editors/armature/armature_utils.c')
-rw-r--r-- | source/blender/editors/armature/armature_utils.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/editors/armature/armature_utils.c b/source/blender/editors/armature/armature_utils.c index 34f2b4f12be..b2e329deee7 100644 --- a/source/blender/editors/armature/armature_utils.c +++ b/source/blender/editors/armature/armature_utils.c @@ -915,9 +915,7 @@ int ED_armature_ebone_selectflag_get(const EditBone *ebone) return ((ebone->flag & (BONE_SELECTED | BONE_TIPSEL)) | ((ebone->parent->flag & BONE_TIPSEL) ? BONE_ROOTSEL : 0)); } - else { - return (ebone->flag & (BONE_SELECTED | BONE_ROOTSEL | BONE_TIPSEL)); - } + return (ebone->flag & (BONE_SELECTED | BONE_ROOTSEL | BONE_TIPSEL)); } void ED_armature_ebone_selectflag_set(EditBone *ebone, int flag) |