0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

ircd::json::tuple: Move exception construction out of the hotline.

This commit is contained in:
Jason Volk 2020-08-02 07:19:59 -07:00
parent e3cf942df3
commit 117e1c0f94

View file

@ -29,7 +29,7 @@ at(const tuple &t)
val<idx>(t)
};
if(!defined(json::value(ret)))
if(unlikely(!defined(json::value(ret))))
throw not_found
{
"%s", key<idx>(t)
@ -53,7 +53,7 @@ at(tuple &t)
val<idx>(t)
};
if(!defined(json::value(ret)))
if(unlikely(!defined(json::value(ret))))
throw not_found
{
"%s", key<idx>(t)