Simplification

Further simplify the else branches.
Thanks to SuslikV for pointing this out.
This commit is contained in:
eisneinechse
2019-05-05 18:18:14 -07:00
committed by GitHub
parent 7c20910ff4
commit c55d8551c1

View File

@@ -327,11 +327,7 @@ bool Keyframe::IsIncreasing(int index)
}
}
if (current_value < next_value) {
// Increasing
return true;
}
else if (current_value >= next_value) {
if (current_value >= next_value) {
// Decreasing
return false;
}