0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-25 23:14:13 +01:00

ircd:Ⓜ️ Fix empty iteration condition.

This commit is contained in:
Jason Volk 2020-02-20 19:46:56 -08:00
parent 50535e89bb
commit e9cc354f01

View file

@ -111,12 +111,16 @@ ircd::m::verify(const m::keys &keys)
const string_view &key_id
{
begin(verify_keys)->first
!empty(verify_keys)?
begin(verify_keys)->first:
string_view{}
};
const json::object &key
{
begin(verify_keys)->second
!empty(verify_keys)?
begin(verify_keys)->second:
string_view{}
};
const ed25519::pk pk