Apply suggestions from code review

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Ed Hennis
2026-07-01 12:04:42 -04:00
committed by GitHub
parent c8c45b343e
commit a0e6971399
2 changed files with 2 additions and 2 deletions

View File

@@ -261,7 +261,7 @@ numberFromJson(SField const& field, json::Value const& value)
// exponents match, or there are no more 0s. If the two results don't match exactly, then the
// value has been rounded one way or another, and should not be used, because it may lead to an
// unexpected result. canonicalizeParts is not to be confused with Number::canonicalize, because
// they're have completely different goals.
// they have completely different goals.
auto canonicalizeParts = [](NumberParts p, int otherExponent) {
if (p.mantissa == 0)
return NumberParts{};

View File

@@ -108,7 +108,7 @@ struct STNumber_test : public beast::unit_test::Suite
auto const expectParseThrows = [this, &parseNumber](std::string const& boundary) {
try
{
auto const bad = parseNumber(boundary);
parseNumber(boundary);
fail();
}
catch (std::exception const& e)