style: ignore std::out_of_range

This commit is contained in:
Eduard Tykhoniuk 2024-09-01 22:45:05 +02:00
parent 0be046c849
commit 0c18c3427a

View file

@ -168,8 +168,7 @@ static std::expected<int64_t, std::string> configStringToInt(const std::string&
auto result = stoll(value, &position, 16);
if (position == value.size())
return result;
} catch (const std::out_of_range&) { return std::unexpected("hex " + value + " is too big"); } catch (const std::exception&) {
}
} catch (const std::exception&) {}
return std::unexpected("invalid hex " + value);
};
if (VALUE.starts_with("0x")) {