[Bf-blender-cvs] [0a93460361e] master: Cleanup: remove else-after-return

Jacques Lucke noreply at git.blender.org
Thu Sep 10 17:23:06 CEST 2020


Commit: 0a93460361ed1c821d8281e418c994076c92cc26
Author: Jacques Lucke
Date:   Thu Sep 10 17:21:44 2020 +0200
Branches: master
https://developer.blender.org/rB0a93460361ed1c821d8281e418c994076c92cc26

Cleanup: remove else-after-return

This causes a clang-tidy error.

===================================================================

M	source/blender/editors/space_outliner/outliner_select.c

===================================================================

diff --git a/source/blender/editors/space_outliner/outliner_select.c b/source/blender/editors/space_outliner/outliner_select.c
index 8c26f0fb07b..61228e24ed9 100644
--- a/source/blender/editors/space_outliner/outliner_select.c
+++ b/source/blender/editors/space_outliner/outliner_select.c
@@ -1285,7 +1285,7 @@ static int outliner_item_do_activate_from_cursor(bContext *C,
   if (outliner_is_co_within_restrict_columns(space_outliner, region, view_mval[0])) {
     return OPERATOR_CANCELLED;
   }
-  else if (outliner_is_co_within_mode_column(space_outliner, view_mval)) {
+  if (outliner_is_co_within_mode_column(space_outliner, view_mval)) {
     return OPERATOR_CANCELLED;
   }



More information about the Bf-blender-cvs mailing list