mirror of
https://github.com/octoleo/restic.git
synced 2025-01-26 16:48:29 +00:00
b46cc6d57e
When loading a blob, restic first looks up pack files containing the blob. To avoid unnecessary work an already cached pack file is preferred. However, if there is only a single pack file to choose from (which is the normal case) sorting the one-element list won't change anything. Therefore avoid the unnecessary cache check in that case.