mirror of
https://github.com/restic/restic.git
synced 2025-05-15 17:18:22 +00:00
Remove extra brackets.
This commit is contained in:
parent
4420fde378
commit
6caad10840
@ -302,7 +302,7 @@ func resolvePassword(opts *GlobalOptions, envStr string) (string, error) {
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
return (strings.TrimSpace(string(output))), nil
|
||||
return strings.TrimSpace(string(output)), nil
|
||||
}
|
||||
if opts.PasswordFile != "" {
|
||||
return loadPasswordFromFile(opts.PasswordFile)
|
||||
|
@ -276,7 +276,7 @@ func packInfoFromIndex(ctx context.Context, idx restic.ListBlobser, usedBlobs *i
|
||||
ip := indexPack[blob.PackID]
|
||||
size := uint64(blob.Length)
|
||||
switch {
|
||||
case ip.usedBlobs > 0, (ip.duplicateBlobs == ip.unusedBlobs), count == 0:
|
||||
case ip.usedBlobs > 0, ip.duplicateBlobs == ip.unusedBlobs, count == 0:
|
||||
// other used blobs in pack, only duplicate blobs or "last" occurrence -> transition to used
|
||||
// a pack file created by an interrupted prune run will consist of only duplicate blobs
|
||||
// thus select such already repacked pack files
|
||||
|
Loading…
x
Reference in New Issue
Block a user