mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-19 19:25:53 +00:00
style: clang-tidy auto fixes (#1685)
Fixes #1684. Please review and commit clang-tidy fixes. Co-authored-by: kuznetsss <15742918+kuznetsss@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
b761fffa2d
commit
02a75356fb
@@ -430,8 +430,9 @@ ledgerHeaderFromRequest(std::shared_ptr<data::BackendInterface const> const& bac
|
|||||||
} else {
|
} else {
|
||||||
ledgerSequence = parseStringAsUInt(stringIndex);
|
ledgerSequence = parseStringAsUInt(stringIndex);
|
||||||
}
|
}
|
||||||
} else if (indexValue.is_int64())
|
} else if (indexValue.is_int64()) {
|
||||||
ledgerSequence = indexValue.as_int64();
|
ledgerSequence = indexValue.as_int64();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
ledgerSequence = ctx.range.maxSequence;
|
ledgerSequence = ctx.range.maxSequence;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,7 +31,6 @@
|
|||||||
#include <boost/beast/http/error.hpp>
|
#include <boost/beast/http/error.hpp>
|
||||||
#include <boost/beast/http/message.hpp>
|
#include <boost/beast/http/message.hpp>
|
||||||
#include <boost/beast/http/message_generator.hpp>
|
#include <boost/beast/http/message_generator.hpp>
|
||||||
#include <boost/beast/http/read.hpp>
|
|
||||||
#include <boost/beast/http/string_body.hpp>
|
#include <boost/beast/http/string_body.hpp>
|
||||||
#include <gtest/gtest.h>
|
#include <gtest/gtest.h>
|
||||||
|
|
||||||
|
|||||||
@@ -2960,7 +2960,7 @@ TEST_F(RPCLedgerEntryDeathTest, RangeNotAvailable)
|
|||||||
));
|
));
|
||||||
checkCalled = true;
|
checkCalled = true;
|
||||||
EXPECT_DEATH(
|
EXPECT_DEATH(
|
||||||
{ [[maybe_unused]] auto __ = handler.process(req, Context{yield}); }, "Ledger range must be available"
|
{ [[maybe_unused]] auto _ = handler.process(req, Context{yield}); }, "Ledger range must be available"
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user