From 478c64fc7b8029c98c433dee378be17d2be81851 Mon Sep 17 00:00:00 2001 From: Denis Angell Date: Fri, 26 Jun 2026 10:31:10 -0400 Subject: [PATCH] chore: LCOV-exclude defensive returns in STTx::checkBatchSign --- src/libxrpl/protocol/STTx.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libxrpl/protocol/STTx.cpp b/src/libxrpl/protocol/STTx.cpp index 7d54457b62..d94d50a825 100644 --- a/src/libxrpl/protocol/STTx.cpp +++ b/src/libxrpl/protocol/STTx.cpp @@ -298,7 +298,7 @@ STTx::checkBatchSign(Rules const& rules) const // LCOV_EXCL_STOP } if (!isFieldPresent(sfBatchSigners)) - return std::unexpected("Missing BatchSigners field."); + return std::unexpected("Missing BatchSigners field."); // LCOV_EXCL_LINE STArray const& signers{getFieldArray(sfBatchSigners)}; for (auto const& signer : signers) { @@ -313,7 +313,9 @@ STTx::checkBatchSign(Rules const& rules) const } catch (std::exception const& e) { + // LCOV_EXCL_START return std::unexpected(std::string("Internal batch signature check failure: ") + e.what()); + // LCOV_EXCL_STOP } }