13
0

sort of NO-OP: follow if/return coding guidelines

This commit is contained in:
Paul Davis 2024-06-05 16:37:46 -06:00
parent 4872d6706d
commit 1dd7d2af1f

View File

@ -1024,7 +1024,9 @@ Region::modify_front_unchecked (timepos_t const & npos, bool reset_fade)
source_zero = timepos_t (source_position().time_domain()); // its actually negative, but this will work for us
}
if (new_position < last) { /* can't trim it zero or negative length */
if (new_position >= last) { /* can't trim it zero or negative length */
return;
}
timecnt_t newlen (_length);
timepos_t np = new_position;
@ -1051,7 +1053,6 @@ Region::modify_front_unchecked (timepos_t const & npos, bool reset_fade)
}
maybe_invalidate_transients ();
}
}
void