mirror of
https://github.com/restic/restic.git
synced 2025-07-29 12:04:44 +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 {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
return (strings.TrimSpace(string(output))), nil
|
return strings.TrimSpace(string(output)), nil
|
||||||
}
|
}
|
||||||
if opts.PasswordFile != "" {
|
if opts.PasswordFile != "" {
|
||||||
return loadPasswordFromFile(opts.PasswordFile)
|
return loadPasswordFromFile(opts.PasswordFile)
|
||||||
|
@ -276,7 +276,7 @@ func packInfoFromIndex(ctx context.Context, idx restic.ListBlobser, usedBlobs *i
|
|||||||
ip := indexPack[blob.PackID]
|
ip := indexPack[blob.PackID]
|
||||||
size := uint64(blob.Length)
|
size := uint64(blob.Length)
|
||||||
switch {
|
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
|
// 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
|
// a pack file created by an interrupted prune run will consist of only duplicate blobs
|
||||||
// thus select such already repacked pack files
|
// thus select such already repacked pack files
|
||||||
|
Loading…
x
Reference in New Issue
Block a user