This commit is contained in:
asonix 2024-02-17 11:26:12 -06:00
parent 0972154ab5
commit 29e5434bc2

View file

@ -44,7 +44,7 @@ pub(crate) async fn chop_store<S: Store>(
pub(crate) fn single_bytes_range(range: &Range) -> Option<&ByteRangeSpec> {
if let Range::Bytes(ranges) = range {
if ranges.len() == 1 {
return ranges.get(0);
return ranges.first();
}
}