mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-08 00:54:26 +02: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) {
|
} catch (\Exception $exception) {
|
||||||
throw new PConfigPersistenceException(sprintf('Cannot load config category "%s" for user %d', $cat, $uid), $exception);
|
|
||||||
} finally {
|
|
||||||
$this->db->close($configs);
|
$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;
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue