mirror of
https://github.com/matrix-construct/construct
synced 2025-02-27 06:00:16 +01:00
modules/m_keys: Minor cleanup.
This commit is contained in:
parent
605c7dd37c
commit
5fa545f879
1 changed files with 4 additions and 5 deletions
|
@ -532,17 +532,16 @@ ircd::m::keys::cache::get(const string_view &server_name,
|
||||||
// Without a key_id we search for the most recent key; note this is not
|
// Without a key_id we search for the most recent key; note this is not
|
||||||
// the same as making a state_key="" query, as that would be an actual
|
// the same as making a state_key="" query, as that would be an actual
|
||||||
// ircd.key entry without an id (which shouldn't exist).
|
// ircd.key entry without an id (which shouldn't exist).
|
||||||
const event::idx &event_idx
|
const event::idx event_idx
|
||||||
{
|
{
|
||||||
key_id?
|
key_id?
|
||||||
node_room.get(std::nothrow, "ircd.key", key_id):
|
node_room.get(std::nothrow, "ircd.key", key_id):
|
||||||
node_room.get(std::nothrow, "ircd.key")
|
node_room.get(std::nothrow, "ircd.key")
|
||||||
};
|
};
|
||||||
|
|
||||||
if(!event_idx)
|
return event_idx?
|
||||||
return false;
|
m::get(std::nothrow, event_idx, "content", closure):
|
||||||
|
false;
|
||||||
return m::get(std::nothrow, event_idx, "content", closure);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
|
Loading…
Add table
Reference in a new issue