diff options
author | David Robillard <d@drobilla.net> | 2022-05-27 12:33:13 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-05-27 12:54:10 -0400 |
commit | 47a5eceb3b81b8a015fbaa69a02b984f04a9f0dd (patch) | |
tree | b797d52ba17734b9b8132d1d084b4f7d7281be14 /src/control.c | |
parent | 9a1ff05280a1b18f486d1a564ac3da77741d6bb8 (diff) | |
download | jalv-47a5eceb3b81b8a015fbaa69a02b984f04a9f0dd.tar.gz jalv-47a5eceb3b81b8a015fbaa69a02b984f04a9f0dd.tar.bz2 jalv-47a5eceb3b81b8a015fbaa69a02b984f04a9f0dd.zip |
Avoid "else" after "return"
Diffstat (limited to 'src/control.c')
-rw-r--r-- | src/control.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/control.c b/src/control.c index 9b362ed..8b619a9 100644 --- a/src/control.c +++ b/src/control.c @@ -1,5 +1,5 @@ /* - Copyright 2007-2016 David Robillard <d@drobilla.net> + Copyright 2007-2022 David Robillard <d@drobilla.net> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above @@ -32,9 +32,12 @@ scale_point_cmp(const ScalePoint* a, const ScalePoint* b) { if (a->value < b->value) { return -1; - } else if (a->value == b->value) { + } + + if (a->value == b->value) { return 0; } + return 1; } |