mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
chore: Fix tests for clang-tidy bugprone-unchecked-optional-access check (#6502)
This commit is contained in:
@@ -225,9 +225,10 @@ Oracle::set(UpdateArg const& arg)
|
||||
price[jss::BaseAsset] = assetToStr(std::get<0>(data));
|
||||
price[jss::QuoteAsset] = assetToStr(std::get<1>(data));
|
||||
if (std::get<2>(data))
|
||||
price[jss::AssetPrice] = *std::get<2>(data);
|
||||
price[jss::AssetPrice] =
|
||||
*std::get<2>(data); // NOLINT(bugprone-unchecked-optional-access)
|
||||
if (std::get<3>(data))
|
||||
price[jss::Scale] = *std::get<3>(data);
|
||||
price[jss::Scale] = *std::get<3>(data); // NOLINT(bugprone-unchecked-optional-access)
|
||||
priceData[jss::PriceData] = price;
|
||||
dataSeries.append(priceData);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user