fix(app): correct port validation and remove redundant TOML helper

This commit is contained in:
2026-06-28 15:47:08 +08:00
parent a5764e901b
commit a016e08a2a
2 changed files with 3 additions and 10 deletions

View File

@@ -27,14 +27,6 @@ std::optional<T> safe_get_value(const toml::table& table, std::string_view key,
}
return value;
}
template <typename U>
requires std::convertible_to<U, std::string>
std::optional<std::string> safe_get_value(const toml::table& table,
std::string_view key,
U&& default_value) {
return safe_get_value<std::string>(
table, key, std::string(std::forward<U>(default_value)));
}
} // namespace TOML