Skip to content

Commit

Permalink
Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
aduffeck committed Aug 20, 2024
1 parent 1f48251 commit 32a9971
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/storage/fs/posix/tree/assimilation.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ func (t *Tree) assimilate(item scanItem) error {
if err == nil {
// this id clashes with an existing id -> clear metadata and re-assimilate

t.lookup.MetadataBackend().Purge(context.Background(), item.Path)
_ = t.lookup.MetadataBackend().Purge(context.Background(), item.Path)
go func() {
_ = t.assimilate(scanItem{Path: item.Path, ForceRescan: true})
}()
Expand Down Expand Up @@ -609,7 +609,7 @@ func (t *Tree) WarmupIDCache(root string, assimilate bool) error {
// this id clashes with an existing id -> clear metadata and re-assimilate
_, err := os.Stat(previousPath)
if err == nil {
t.lookup.MetadataBackend().Purge(context.Background(), path)
_ = t.lookup.MetadataBackend().Purge(context.Background(), path)
_ = t.assimilate(scanItem{Path: path, ForceRescan: true})
}
}
Expand Down

0 comments on commit 32a9971

Please sign in to comment.