From 32a99713d3279e6d62847b9caf6b9b3835065aee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Duffeck?= Date: Tue, 20 Aug 2024 11:31:36 +0200 Subject: [PATCH] Fix linter issues --- pkg/storage/fs/posix/tree/assimilation.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/storage/fs/posix/tree/assimilation.go b/pkg/storage/fs/posix/tree/assimilation.go index 62d7e32f0c..496c841cb8 100644 --- a/pkg/storage/fs/posix/tree/assimilation.go +++ b/pkg/storage/fs/posix/tree/assimilation.go @@ -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}) }() @@ -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}) } }