From c8fb69ee1a6dc8bd290d594d4234d659339e2436 Mon Sep 17 00:00:00 2001 From: Bart <11445373+bthomee@users.noreply.github.com> Date: Thu, 23 Apr 2026 19:02:21 -0700 Subject: [PATCH] Address Copilot feedback --- src/xrpld/app/ledger/detail/LedgerNodeHelpers.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/xrpld/app/ledger/detail/LedgerNodeHelpers.h b/src/xrpld/app/ledger/detail/LedgerNodeHelpers.h index 7c7ac222d4..f727e059f7 100644 --- a/src/xrpld/app/ledger/detail/LedgerNodeHelpers.h +++ b/src/xrpld/app/ledger/detail/LedgerNodeHelpers.h @@ -34,12 +34,11 @@ validateLedgerNode(protocol::TMLedgerNode const& ledgerNode); * @brief Deserializes a SHAMapTreeNode from wire format data. * * This function attempts to create a SHAMapTreeNode from the provided data string. If the data is - * malformed or deserialization fails, the function returns std::nullopt instead of throwing an + * malformed or deserialization fails, the function returns a nullptr instead of throwing an * exception. * * @param data The serialized node data in wire format. - * @return An optional containing the deserialized tree node if successful, or std::nullopt if - * deserialization fails. + * @return The deserialized tree node if successful, or a nullptr if deserialization fails. */ [[nodiscard]] SHAMapTreeNodePtr getTreeNode(std::string_view data);