lock: switch to repository.List
This commit is contained in:
parent
bfb56b78e1
commit
1dfd854769
1 changed files with 2 additions and 2 deletions
|
@ -341,8 +341,8 @@ func (l *Lock) checkExistence(ctx context.Context) (bool, error) {
|
||||||
|
|
||||||
exists := false
|
exists := false
|
||||||
|
|
||||||
err := l.repo.Backend().List(ctx, LockFile, func(fi backend.FileInfo) error {
|
err := l.repo.List(ctx, LockFile, func(id ID, size int64) error {
|
||||||
if fi.Name == l.lockID.String() {
|
if id.Equal(*l.lockID) {
|
||||||
exists = true
|
exists = true
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in a new issue