mirror of
https://github.com/restic/restic.git
synced 2026-05-03 17:35:25 +00:00
367449dede
The slicing operator `slice[low:high]` default to 0 for the lower bound and len(slice) for the upper bound when either or both are not specified. Fix the code to use `cap(slice)` to check for the slice capacity.