Skip to content

Commit

Permalink
Code improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Tectu committed Nov 25, 2024
1 parent 3831721 commit a7e02e0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/malloy/core/detail/controller_run_result.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ namespace malloy::detail
{
if (!logger)
throw std::logic_error{"invalid config: logger is null"};
else if (num_threads == 0)

if (num_threads == 0)
throw std::logic_error{"invalid config: cannot have 0 threads"};
};
};
Expand Down
4 changes: 2 additions & 2 deletions lib/malloy/core/utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ namespace malloy
[[nodiscard]]
static
inline
uint8_t
hex2dec(uint8_t c)
std::uint8_t
hex2dec(std::uint8_t c)
{
if (c >= '0' && c <= '9')
c -= '0';
Expand Down
1 change: 1 addition & 0 deletions lib/malloy/server/http/connection_detector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class router_adaptor :
*
* @param router The router.
*/
explicit
router_adaptor(router_t router) :
m_router{ std::move(router) }
{
Expand Down

0 comments on commit a7e02e0

Please sign in to comment.