From ec1392c6dec3f945d889561a789fe3a769906b7f Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Mon, 5 Aug 2024 16:21:16 +0300 Subject: [PATCH] chore: make clang-format and linter happy --- src/governance/governance.cpp | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/src/governance/governance.cpp b/src/governance/governance.cpp index 208cb7e5bd..72709d951a 100644 --- a/src/governance/governance.cpp +++ b/src/governance/governance.cpp @@ -748,19 +748,23 @@ void CGovernanceManager::VoteGovernanceTriggers(const std::optionalGetCurrentMNVotes(mn_activeman.GetOutPoint(), voteRecord)) { const auto& strFunc = __func__; - if (ranges::any_of(voteRecord.mapInstances, [&](const auto& voteInstancePair){ - if (voteInstancePair.first == VOTE_SIGNAL_FUNDING) { - LogPrint(BCLog::GOBJECT, "CGovernanceManager::%s Not voting NO-FUNDING for trigger:%s, we voted %s for it already\n", - strFunc, trigger_hash.ToString(), CGovernanceVoting::ConvertOutcomeToString(voteInstancePair.second.eOutcome)); - return true; - } - return false; - })) { + if (ranges::any_of(voteRecord.mapInstances, [&](const auto& voteInstancePair) { + if (voteInstancePair.first == VOTE_SIGNAL_FUNDING) { + LogPrint(BCLog::GOBJECT, /* Continued */ + "CGovernanceManager::%s " + "Not voting NO-FUNDING for trigger:%s, we voted %s for it already\n", + strFunc, trigger_hash.ToString(), + CGovernanceVoting::ConvertOutcomeToString(voteInstancePair.second.eOutcome)); + return true; + } + return false; + })) { continue; } }