Skip to content

Commit

Permalink
Hounds be happy
Browse files Browse the repository at this point in the history
  • Loading branch information
aduffeck committed Feb 3, 2022
1 parent 13889fb commit 19f9d33
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pkg/storage/utils/decomposedfs/node/locks.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,10 @@ func (n *Node) SetLock(ctx context.Context, lock *provider.Lock) error {
lockID, _ := ctxpkg.ContextGetLockID(ctx)
if l.LockId != lockID {
return errtypes.Locked(l.LockId)
} else {
err := os.Remove(n.LockFilePath())
if err != nil {
return err
}
}
err := os.Remove(n.LockFilePath())
if err != nil {
return err
}
}

Expand Down

0 comments on commit 19f9d33

Please sign in to comment.