mirror of
https://github.com/octoleo/restic.git
synced 2024-11-22 21:05:10 +00:00
make linter happy
This commit is contained in:
parent
99a05d5ab2
commit
08ae708b3b
@ -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 New Issue
Block a user