remove confusing finally block

This commit is contained in:
Art4 2024-11-22 10:53:26 +00:00
parent b8d2a352ae
commit d4504c39c6

View file

@ -192,11 +192,12 @@ class DatabaseLock extends AbstractLock
array_push($keys, $key['name']);
}
} catch (\Exception $exception) {
throw new LockPersistenceException(sprintf('Cannot get lock with prefix %s', $prefix), $exception);
} finally {
$this->dba->close($stmt);
throw new LockPersistenceException(sprintf('Cannot get lock with prefix %s', $prefix), $exception);
}
$this->dba->close($stmt);
return $keys;
}
}