diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-07-03 15:38:26 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-07-03 15:48:38 +0300 |
commit | 9dce2c9d1432d2798854b909e6262fbfb94ce3c7 (patch) | |
tree | 863025e2198da67fab539b16c107b9569a1fb14c /source/blender/editors/gpencil/gpencil_interpolate.c | |
parent | 20869065b86263f72e469df17354bd6631be3712 (diff) |
Cleanup: Editors/GPencil, Clang-Tidy else-after-return fixes
This addresses warnings from Clang-Tidy's `readability-else-after-return`
rule in the `source/blender/editors/gpencil` module.
No functional changes.
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_interpolate.c')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_interpolate.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/source/blender/editors/gpencil/gpencil_interpolate.c b/source/blender/editors/gpencil/gpencil_interpolate.c index 5e653187edb..179f621205b 100644 --- a/source/blender/editors/gpencil/gpencil_interpolate.c +++ b/source/blender/editors/gpencil/gpencil_interpolate.c @@ -558,9 +558,7 @@ static int gpencil_interpolate_invoke(bContext *C, wmOperator *op, const wmEvent } return OPERATOR_CANCELLED; } - else { - tgpi = op->customdata; - } + tgpi = op->customdata; /* set cursor to indicate modal */ WM_cursor_modal_set(win, WM_CURSOR_EW_SCROLL); @@ -687,10 +685,8 @@ static int gpencil_interpolate_modal(bContext *C, wmOperator *op, const wmEvent break; } - else { - /* unhandled event - allow to pass through */ - return OPERATOR_RUNNING_MODAL | OPERATOR_PASS_THROUGH; - } + /* unhandled event - allow to pass through */ + return OPERATOR_RUNNING_MODAL | OPERATOR_PASS_THROUGH; } } |