2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-26 06:46:34 +00:00

Unindent else block after if block ending with a return statement

This commit is contained in:
Michael Eischer 2020-07-28 22:19:21 +02:00
parent 4784540f04
commit dc31529fc3
2 changed files with 7 additions and 7 deletions

View File

@ -414,12 +414,12 @@ func (arch *Archiver) Save(ctx context.Context, snPath, target string, previous
_ = file.Close()
return fn, false, nil
} else {
debug.Log("%v hasn't changed, but contents are missing!", target)
// There are contents missing - inform user!
err := errors.Errorf("parts of %v not found in the repository index; storing the file again", target)
arch.error(abstarget, fi, err)
}
debug.Log("%v hasn't changed, but contents are missing!", target)
// There are contents missing - inform user!
err := errors.Errorf("parts of %v not found in the repository index; storing the file again", target)
arch.error(abstarget, fi, err)
}
fn.isFile = true

View File

@ -230,10 +230,10 @@ func (b *Backup) CompleteItem(item string, previous, current *restic.Node, s arc
done: true,
}
return
} else {
b.summary.ProcessedBytes += current.Size
}
b.summary.ProcessedBytes += current.Size
switch current.Type {
case "file":
b.processedCh <- counter{Files: 1}