mirror of
https://github.com/restic/restic.git
synced 2026-10-19 16:15:41 +00:00
Add codespell support with configuration and fixes (#21807)
Co-authored-by: Claude Code 2.1.142 / Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Code 2.1.142 / Claude Opus 4.7
parent
c221cd06ad
commit
451cc6c048
@@ -185,7 +185,7 @@ func (r *fileRestorer) restoreFiles(ctx context.Context) error {
|
||||
file.sparse = false
|
||||
}
|
||||
|
||||
// empty file or one with already uptodate content. Make sure that the file size is correct
|
||||
// empty file or one with already up-to-date content. Make sure that the file size is correct
|
||||
if !restoredBlobs {
|
||||
err := r.truncateFileToSize(file.location, file.size)
|
||||
if errFile := r.sanitizeError(file, err); errFile != nil {
|
||||
|
||||
@@ -232,7 +232,7 @@ func (w *filesWriter) writeToFile(path string, blob []byte, offset int64, create
|
||||
bucket.files[path].users--
|
||||
if bucket.files[path].users == 0 {
|
||||
delete(bucket.files, path)
|
||||
// Add to cache to allow re-use. Cache will close files on overflow.
|
||||
// Add to cache to allow reuse. Cache will close files on overflow.
|
||||
w.cacheMu.Lock()
|
||||
w.cache.Add(path, wr)
|
||||
w.cacheMu.Unlock()
|
||||
|
||||
Reference in New Issue
Block a user