mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
ircd:Ⓜ️ Fix empty iteration condition.
This commit is contained in:
parent
50535e89bb
commit
e9cc354f01
1 changed files with 6 additions and 2 deletions
|
@ -111,12 +111,16 @@ ircd::m::verify(const m::keys &keys)
|
||||||
|
|
||||||
const string_view &key_id
|
const string_view &key_id
|
||||||
{
|
{
|
||||||
begin(verify_keys)->first
|
!empty(verify_keys)?
|
||||||
|
begin(verify_keys)->first:
|
||||||
|
string_view{}
|
||||||
};
|
};
|
||||||
|
|
||||||
const json::object &key
|
const json::object &key
|
||||||
{
|
{
|
||||||
begin(verify_keys)->second
|
!empty(verify_keys)?
|
||||||
|
begin(verify_keys)->second:
|
||||||
|
string_view{}
|
||||||
};
|
};
|
||||||
|
|
||||||
const ed25519::pk pk
|
const ed25519::pk pk
|
||||||
|
|
Loading…
Reference in a new issue