General linter cleanup

This commit is contained in:
Dan Paulat 2025-02-02 01:35:19 -06:00
parent e6cfef06a7
commit 8da440ea1f
3 changed files with 17 additions and 7 deletions

View file

@ -144,13 +144,16 @@ IemWarningsProvider::LoadTextProducts(
std::vector<std::pair<std::string_view, cpr::AsyncResponse>>
asyncResponses {};
asyncResponses.reserve(textProducts.size());
const std::string endpointUrl = kBaseUrl_ + kNwsTextProductEndpoint_;
for (auto& productId : textProducts)
{
asyncResponses.emplace_back(
productId,
cpr::GetAsync(
cpr::Url {kBaseUrl_ + kNwsTextProductEndpoint_ + productId},
cpr::Url {endpointUrl + productId},
network::cpr::GetHeader(),
parameters));
}