Skip to content

Commit c55d855

Browse files
authored
Simplification
Further simplify the else branches. Thanks to SuslikV for pointing this out.
1 parent 7c20910 commit c55d855

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/KeyFrame.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -327,11 +327,7 @@ bool Keyframe::IsIncreasing(int index)
327327
}
328328
}
329329

330-
if (current_value < next_value) {
331-
// Increasing
332-
return true;
333-
}
334-
else if (current_value >= next_value) {
330+
if (current_value >= next_value) {
335331
// Decreasing
336332
return false;
337333
}

0 commit comments

Comments
 (0)