Skip to content

Commit

Permalink
move returns out of API_VERBOSE
Browse files Browse the repository at this point in the history
  • Loading branch information
tcsullivan committed Aug 8, 2024
1 parent 9a7977b commit d2315c4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions noisemeter-device/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,10 @@ std::optional<JsonDocument> API::sendHttpGET(HTTPClient& https)
} else {
SERIAL.print("[api] HTTP error: ");
SERIAL.println(code);
return {};
#endif
}

return {};
}

std::optional<JsonDocument> API::sendHttpPOST(HTTPClient& https, const String& payload)
Expand All @@ -116,9 +117,10 @@ std::optional<JsonDocument> API::sendHttpPOST(HTTPClient& https, const String& p
} else {
SERIAL.print("[api] HTTP error: ");
SERIAL.println(code);
return {};
#endif
}

return {};
}

std::optional<JsonDocument> API::handleHttpResponse(HTTPClient& https)
Expand Down

0 comments on commit d2315c4

Please sign in to comment.