fix: linting errors

This commit is contained in:
helgeerbe 2023-05-23 10:24:06 +02:00
parent 47f81f2579
commit 13b318690d
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ void WebApiPrometheusClass::loop()
void WebApiPrometheusClass::onPrometheusMetricsGet(AsyncWebServerRequest* request)
{
try {
auto stream = request->beginResponseStream("text/plain; charset=utf-8", 4096 * INV_MAX_COUNT); // TODO helge: check if this calculation is correct
auto stream = request->beginResponseStream("text/plain; charset=utf-8", 4096 * INV_MAX_COUNT); // TODO (helge) check if this calculation is correct
stream->print("# HELP opendtu_build Build info\n");
stream->print("# TYPE opendtu_build gauge\n");

View File

@ -69,7 +69,7 @@ void WebApiWsLiveClass::loop()
String buffer;
// free JsonDocument as soon as possible
{
DynamicJsonDocument root(4096 * INV_MAX_COUNT); // TODO helge: check if this calculation is correct
DynamicJsonDocument root(4096 * INV_MAX_COUNT); // TODO (helge) check if this calculation is correct
JsonVariant var = root;
generateJsonResponse(var);
serializeJson(root, buffer);