diskreader: avoid double conditional, use else{} instead

This commit is contained in:
Paul Davis 2021-04-21 22:51:06 -06:00
parent 5ebe78ad2d
commit 0cec44ca4b

View file

@ -1015,9 +1015,9 @@ DiskReader::audio_read (Sample* sum_buffer,
const Evoral::Range<samplepos_t> loop_range (loop_start, loop_end - 1); const Evoral::Range<samplepos_t> loop_range (loop_start, loop_end - 1);
start = loop_range.squish (start); start = loop_range.squish (start);
} }
}
if (reversed) { } else {
start -= cnt; start -= cnt;
start = max (samplepos_t (0), start); start = max (samplepos_t (0), start);
} }