Various minor tweaks (not user-facing).
This commit is contained in:
@@ -83,15 +83,18 @@ namespace // checked client num class
|
||||
return std::isdigit(c);
|
||||
});
|
||||
|
||||
auto value = std::numeric_limits<std::size_t>::max();
|
||||
const auto ec = std::from_chars(pid.data(), pid.data() + pid.size(), value).ec;
|
||||
|
||||
if (all_digits && ec == std::errc{})
|
||||
if (all_digits)
|
||||
{
|
||||
const auto client_num = check_client_num(value);
|
||||
if (client_num)
|
||||
auto value = std::numeric_limits<std::size_t>::max();
|
||||
const auto ec = std::from_chars(pid.data(), pid.data() + pid.size(), value).ec;
|
||||
|
||||
if (ec == std::errc{})
|
||||
{
|
||||
return client_num;
|
||||
const auto client_num = check_client_num(value);
|
||||
if (client_num)
|
||||
{
|
||||
return client_num;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user