mirror of
https://github.com/friendica/friendica
synced 2024-12-22 18:40:17 +00:00
remove confusing finally block
This commit is contained in:
parent
b8d2a352ae
commit
d4504c39c6
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue