Skip to content

Commit 905e7ae

Browse files
committed
Fix clang tidy warning
1 parent 63d7d7d commit 905e7ae

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ext/src/http/client/curl/http_client_curl.cc

+5-2
Original file line numberDiff line numberDiff line change
@@ -830,9 +830,9 @@ bool HttpClient::doRemoveSessions()
830830
return has_data;
831831
}
832832

833+
#ifdef ENABLE_OTLP_RETRY_PREVIEW
833834
bool HttpClient::doRetrySessions(bool report_all)
834835
{
835-
#ifdef ENABLE_OTLP_RETRY_PREVIEW
836836
const auto now = std::chrono::system_clock::now();
837837
auto has_data = false;
838838

@@ -866,10 +866,13 @@ bool HttpClient::doRetrySessions(bool report_all)
866866

867867
report_all = report_all && !pending_to_retry_sessions_.empty();
868868
return has_data || report_all;
869+
}
869870
#else
871+
bool HttpClient::doRetrySessions(bool /* report_all */)
872+
{
870873
return false;
871-
#endif // ENABLE_OTLP_RETRY_PREVIEW
872874
}
875+
#endif // ENABLE_OTLP_RETRY_PREVIEW
873876

874877
void HttpClient::resetMultiHandle()
875878
{

0 commit comments

Comments
 (0)