From 117e1c0f943347fcd00781e947154d1d7e503be6 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sun, 2 Aug 2020 07:19:59 -0700 Subject: [PATCH] ircd::json::tuple: Move exception construction out of the hotline. --- include/ircd/json/tuple/at.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ircd/json/tuple/at.h b/include/ircd/json/tuple/at.h index 5d4131087..f9b34b11b 100644 --- a/include/ircd/json/tuple/at.h +++ b/include/ircd/json/tuple/at.h @@ -29,7 +29,7 @@ at(const tuple &t) val(t) }; - if(!defined(json::value(ret))) + if(unlikely(!defined(json::value(ret)))) throw not_found { "%s", key(t) @@ -53,7 +53,7 @@ at(tuple &t) val(t) }; - if(!defined(json::value(ret))) + if(unlikely(!defined(json::value(ret)))) throw not_found { "%s", key(t)