Skip to content

Commit

Permalink
style: clang-tidy auto fixes (#1685)
Browse files Browse the repository at this point in the history
Fixes #1684. Please review and commit clang-tidy fixes.

Co-authored-by: kuznetsss <[email protected]>
  • Loading branch information
github-actions[bot] and kuznetsss authored Oct 15, 2024
1 parent b761fff commit 02a7535
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/rpc/RPCHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,9 @@ ledgerHeaderFromRequest(std::shared_ptr<data::BackendInterface const> const& bac
} else {
ledgerSequence = parseStringAsUInt(stringIndex);
}
} else if (indexValue.is_int64())
} else if (indexValue.is_int64()) {
ledgerSequence = indexValue.as_int64();
}
} else {
ledgerSequence = ctx.range.maxSequence;
}
Expand Down
1 change: 0 additions & 1 deletion tests/common/util/TestHttpServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include <boost/beast/http/error.hpp>
#include <boost/beast/http/message.hpp>
#include <boost/beast/http/message_generator.hpp>
#include <boost/beast/http/read.hpp>
#include <boost/beast/http/string_body.hpp>
#include <gtest/gtest.h>

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/rpc/handlers/LedgerEntryTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2960,7 +2960,7 @@ TEST_F(RPCLedgerEntryDeathTest, RangeNotAvailable)
));
checkCalled = true;
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"
);
});

Expand Down

0 comments on commit 02a7535

Please sign in to comment.