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) 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 { if err != nil {
return err return err
} }