repository: change Unlocker to interface

This commit is contained in:
Michael Eischer
2026-06-13 19:48:47 +02:00
parent 766d9f9f1e
commit 79e92b3bc6
3 changed files with 12 additions and 8 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ func internalOpenWithLocked(ctx context.Context, gopts global.Options, dryRun bo
unlock := func() {}
if !dryRun {
var lock *repository.Unlocker
var lock repository.Unlocker
lock, ctx, err = repository.Lock(ctx, repo, exclusive, gopts.RetryLock, func(msg string) {
if !gopts.JSON {