mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-04 17:27:00 +00:00
Fix clang-tidy erros
This commit is contained in:
@@ -205,6 +205,7 @@ class Logger
|
||||
*/
|
||||
template <typename T>
|
||||
[[maybe_unused]] Pump&
|
||||
// NOLINTNEXTLINE(cppcoreguidelines-rvalue-reference-param-not-moved)
|
||||
operator<<(xrpl::log::Parameter<T>&& p)
|
||||
{
|
||||
if (enabled_)
|
||||
|
||||
@@ -589,7 +589,7 @@ TEST_F(LoggerFixture, double_init_throws)
|
||||
|
||||
// Second init should throw because LogServiceState is already initialized
|
||||
LoggingConfiguration const config{};
|
||||
EXPECT_THROW(LogService::init(config), std::logic_error);
|
||||
EXPECT_THROW(auto _ = LogService::init(config), std::logic_error);
|
||||
}
|
||||
|
||||
TEST_F(LoggerFixture, reset_before_init_throws)
|
||||
|
||||
Reference in New Issue
Block a user