From 4fa6821e0645ff61a9380cd090abff472205c630 Mon Sep 17 00:00:00 2001 From: Lexi Winter Date: Sun, 29 Jun 2025 17:16:22 +0100 Subject: add clang-tidy support --- nihil.ucl/map.ccm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nihil.ucl/map.ccm') diff --git a/nihil.ucl/map.ccm b/nihil.ucl/map.ccm index 1c5dd19..fa77601 100644 --- a/nihil.ucl/map.ccm +++ b/nihil.ucl/map.ccm @@ -88,7 +88,8 @@ private: struct state { state(::ucl_object_t const *obj) { - if ((iter = ::ucl_object_iterate_new(obj)) == nullptr) + iter = ::ucl_object_iterate_new(obj); + if (iter == nullptr) throw std::system_error(make_error_code( std::errc(errno))); } -- cgit v1.2.3