From 08ae708b3b2eaa2c9f6b614737b2589adc1a562d Mon Sep 17 00:00:00 2001 From: Alexander Weiss Date: Sun, 22 Nov 2020 22:33:02 +0100 Subject: [PATCH] make linter happy --- cmd/restic/cmd_repair.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/restic/cmd_repair.go b/cmd/restic/cmd_repair.go index aa3a9caca..e159da261 100644 --- a/cmd/restic/cmd_repair.go +++ b/cmd/restic/cmd_repair.go @@ -84,7 +84,8 @@ func runRepair(opts RepairOptions, args []string) error { } lock, err := lockRepoExclusive(globalOptions.ctx, repo) - defer unlockRepo(lock) + // to make linter happy, as unlockRepo returns an error (which is ignored) + defer func() { _ = unlockRepo(lock) }() if err != nil { return err }