forked from TrueCloudLab/restic
make linter happy
This commit is contained in:
parent
99a05d5ab2
commit
08ae708b3b
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue