2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-26 14:56:29 +00:00

make linter happy

This commit is contained in:
Alexander Weiss 2020-11-22 22:33:02 +01:00 committed by Michael Eischer
parent 99a05d5ab2
commit 08ae708b3b

View File

@ -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
}