diff options
author | Hans Goudey <h.goudey@me.com> | 2021-11-20 07:48:51 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-11-20 07:48:51 +0300 |
commit | 3baaab15fc9983b2efd4f67da98faa15c742074e (patch) | |
tree | f7bad773e9cf6b1c129ffe5625ded82ce76497f7 /source/blender/gpencil_modifiers | |
parent | 411261fb32760730ce4aa80bea6b8c2151ea3989 (diff) |
Cleanup: Else after return
Diffstat (limited to 'source/blender/gpencil_modifiers')
-rw-r--r-- | source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c index 88d717eb032..3773af70498 100644 --- a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c +++ b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c @@ -579,9 +579,7 @@ static int lineart_point_on_line_segment(double v[2], double v0[2], double v1[2] c2 = ratiod(v0[1], v1[1], v[1]); return (c2 >= -DBL_TRIANGLE_LIM && c2 <= 1 + DBL_TRIANGLE_LIM); } - else { - return false; - } + return false; } if (!LRT_DOUBLE_CLOSE_ENOUGH(v1[1], v0[1])) { @@ -592,9 +590,7 @@ static int lineart_point_on_line_segment(double v[2], double v0[2], double v1[2] c1 = ratiod(v0[0], v1[0], v[0]); return (c1 >= -DBL_TRIANGLE_LIM && c1 <= 1 + DBL_TRIANGLE_LIM); } - else { - return false; - } + return false; } if (LRT_DOUBLE_CLOSE_ENOUGH(c1, c2) && c1 >= 0 && c1 <= 1) { |