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:
parent
e3cf942df3
commit
117e1c0f94
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue