mirror of
https://github.com/friendica/friendica
synced 2025-04-29 10:24:23 +02: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']);
|
array_push($keys, $key['name']);
|
||||||
}
|
}
|
||||||
} catch (\Exception $exception) {
|
} catch (\Exception $exception) {
|
||||||
throw new LockPersistenceException(sprintf('Cannot get lock with prefix %s', $prefix), $exception);
|
|
||||||
} finally {
|
|
||||||
$this->dba->close($stmt);
|
$this->dba->close($stmt);
|
||||||
|
throw new LockPersistenceException(sprintf('Cannot get lock with prefix %s', $prefix), $exception);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->dba->close($stmt);
|
||||||
|
|
||||||
return $keys;
|
return $keys;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue