From de7c9f41e613a704f8e3258050b952d2ada60083 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 3 Jul 2020 15:42:22 +0200 Subject: Cleanup: Editors/Object, Clang-Tidy else-after-return fixes This addresses warnings from Clang-Tidy's `readability-else-after-return` rule in the `source/blender/editors/object` module. No functional changes. --- source/blender/editors/object/object_edit.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'source/blender/editors/object/object_edit.c') diff --git a/source/blender/editors/object/object_edit.c b/source/blender/editors/object/object_edit.c index 283aaec85ef..0ea9d24a016 100644 --- a/source/blender/editors/object/object_edit.c +++ b/source/blender/editors/object/object_edit.c @@ -156,9 +156,7 @@ static bool object_hide_poll(bContext *C) if (CTX_wm_space_outliner(C) != NULL) { return ED_outliner_collections_editor_poll(C); } - else { - return ED_operator_view3d_active(C); - } + return ED_operator_view3d_active(C); } static int object_hide_view_clear_exec(bContext *C, wmOperator *op) @@ -1634,15 +1632,14 @@ static bool move_to_collection_poll(bContext *C) if (CTX_wm_space_outliner(C) != NULL) { return ED_outliner_collections_editor_poll(C); } - else { - View3D *v3d = CTX_wm_view3d(C); - if (v3d && v3d->localvd) { - return false; - } + View3D *v3d = CTX_wm_view3d(C); - return ED_operator_objectmode(C); + if (v3d && v3d->localvd) { + return false; } + + return ED_operator_objectmode(C); } static int move_to_collection_exec(bContext *C, wmOperator *op) -- cgit v1.2.3