mirror of https://github.com/restic/restic.git
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. |
||
---|---|---|
.. | ||
testdata | ||
doc.go | ||
index.go | ||
index_test.go | ||
indexmap.go | ||
indexmap_test.go | ||
key.go | ||
master_index.go | ||
master_index_test.go | ||
packer_manager.go | ||
packer_manager_test.go | ||
repack.go | ||
repack_test.go | ||
repository.go | ||
repository_internal_test.go | ||
repository_test.go | ||
testing.go | ||
worker_group.go |