fix: Apply pre-commit and clang-tidy fixes (formatting, braces, naming)

Agent-Logs-Url: https://github.com/XRPLF/rippled/sessions/a872065b-cdb8-47a7-8acb-3ece056594ca

Co-authored-by: mvadari <8029314+mvadari@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-05-04 17:20:36 +00:00
committed by GitHub
parent 3e372656d3
commit 719368ae25
3 changed files with 11 additions and 7 deletions

View File

@@ -17,9 +17,7 @@ namespace beast {
checking for existence.
*/
inline std::filesystem::path
uniqueRandomPath(
std::filesystem::path const& base,
std::size_t maxAttempts = 100)
uniqueRandomPath(std::filesystem::path const& base, std::size_t maxAttempts = 100)
{
std::random_device rd;
for (std::size_t attempt = 0; attempt < maxAttempts; ++attempt)
@@ -30,8 +28,10 @@ uniqueRandomPath(
std::error_code ec;
bool const exists = std::filesystem::exists(candidate, ec);
if (ec)
{
throw std::runtime_error(
"Unable to check path '" + candidate.string() + "': " + ec.message());
}
if (!exists)
return candidate;
}