1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-26 09:47:49 +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
}