Skip to content

Commit

Permalink
Don't need to check/throw if not Issue. It's already done in get<>().
Browse files Browse the repository at this point in the history
  • Loading branch information
gregtatcam committed Nov 22, 2024
1 parent e0ffb63 commit 8f3bbc4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/libxrpl/protocol/Indexes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,6 @@ nft_sells(uint256 const& id) noexcept
Keylet
amm(Asset const& issue1, Asset const& issue2) noexcept
{
if (!issue1.holds<Issue>() || !issue2.holds<Issue>())
Throw<std::runtime_error>("Asset doesn't hold issue");
auto const& [minI, maxI] =
std::minmax(issue1.get<Issue>(), issue2.get<Issue>());
return amm(indexHash(
Expand Down

0 comments on commit 8f3bbc4

Please sign in to comment.