mirror of
https://github.com/friendica/friendica
synced 2024-12-22 18:40:17 +00:00
refactor confusing finally block
This commit is contained in:
parent
4e9d129dd3
commit
bc76f2af67
1 changed files with 3 additions and 2 deletions
|
@ -75,11 +75,12 @@ class PConfig
|
|||
}
|
||||
}
|
||||
} catch (\Exception $exception) {
|
||||
throw new PConfigPersistenceException(sprintf('Cannot load config category "%s" for user %d', $cat, $uid), $exception);
|
||||
} finally {
|
||||
$this->db->close($configs);
|
||||
throw new PConfigPersistenceException(sprintf('Cannot load config category "%s" for user %d', $cat, $uid), $exception);
|
||||
}
|
||||
|
||||
$this->db->close($configs);
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue