chore: Fix clang-tidy issues after introducing new checks (#3061)

This commit is contained in:
Alex Kremer
2026-05-05 15:21:54 +01:00
committed by GitHub
parent 5fe7c4407b
commit e96ef39857
10 changed files with 122 additions and 73 deletions

View File

@@ -196,6 +196,7 @@ TEST_F(PrometheusHandleRequestTests, responseWithCounterAndGauge)
auto response = handlePrometheusRequest(req, true);
ASSERT_TRUE(response.has_value());
EXPECT_EQ(response->result(), http::status::ok); // NOLINT(bugprone-unchecked-optional-access)
// NOLINTNEXTLINE(bugprone-unchecked-optional-access)
EXPECT_EQ(response->operator[](http::field::content_type), "text/plain; version=0.0.4");