From cb16add8c82ab4f5087bd044893ab382c250e89e Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sun, 25 Aug 2024 23:14:39 +0200 Subject: [PATCH] restic: cleanup redundant code in test case --- internal/restic/node_test.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/internal/restic/node_test.go b/internal/restic/node_test.go index 642beadc5..ab7f66e5b 100644 --- a/internal/restic/node_test.go +++ b/internal/restic/node_test.go @@ -248,10 +248,6 @@ func TestNodeRestoreAt(t *testing.T) { rtest.OK(t, test.CreateAt(context.TODO(), nodePath, nil)) rtest.OK(t, test.RestoreMetadata(nodePath, func(msg string) { rtest.OK(t, fmt.Errorf("Warning triggered for path: %s: %s", nodePath, msg)) })) - if test.Type == "dir" { - rtest.OK(t, test.RestoreTimestamps(nodePath)) - } - fi, err := os.Lstat(nodePath) rtest.OK(t, err)