From 79321a195cbdc5c88e8ad96d7b072255163db5a8 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Fri, 20 May 2022 23:44:44 +0200 Subject: [PATCH] archiver: remove dead attribute from FutureNode --- internal/archiver/archiver.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/internal/archiver/archiver.go b/internal/archiver/archiver.go index 0ed66db5d..94b964f4d 100644 --- a/internal/archiver/archiver.go +++ b/internal/archiver/archiver.go @@ -295,8 +295,7 @@ type FutureNode struct { snPath, target string // kept to call the error callback function - absTarget string - fi os.FileInfo + fi os.FileInfo node *restic.Node stats ItemStats @@ -366,8 +365,6 @@ func (arch *Archiver) Save(ctx context.Context, snPath, target string, previous return FutureNode{}, false, err } - fn.absTarget = abstarget - // exclude files by path before running Lstat to reduce number of lstat calls if !arch.SelectByName(abstarget) { debug.Log("%v is excluded by path", target)