From 71c87d4f9bf853b5e8594ad12e2640e578f36969 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 81eb7bc7d4..33f4e5b0c0 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}) }() @@ -603,7 +603,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}) } }