mirror of
https://github.com/restic/restic.git
synced 2024-12-27 02:08:37 +00:00
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)
|
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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue