Skip to content

Commit

Permalink
Fix clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
gregtatcam committed Jan 4, 2024
1 parent 6a02476 commit f7853f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ripple/protocol/Asset.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,15 @@ class Asset
return std::get_if<T>(asset_);
}

operator Currency const&() const
operator Currency const &() const
{
assert(std::holds_alternative<Currency>(asset_));
if (!std::holds_alternative<Currency>(asset_))
Throw<std::logic_error>("Invalid Currency cast");
return std::get<Currency>(asset_);
}

operator MPT const&() const
operator MPT const &() const
{
assert(std::holds_alternative<MPT>(asset_));
if (!std::holds_alternative<MPT>(asset_))
Expand Down

0 comments on commit f7853f5

Please sign in to comment.