Style changes for consistency

Someone on #github suggested that I can send a PR to your branch...

I've never done this before, let's see if it works.
This commit is contained in:
Scott Baker 2020-09-28 09:00:16 -07:00 committed by GitHub
parent 2d9935fda4
commit dfbaf8ef7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,12 +152,9 @@ int WebOTA::add_http_routes(WebServer *server, const char *path) {
// Upload firmware page
server->on(path, HTTP_GET, [server,this]() {
String html = "";
if (this->custom_html != NULL)
{
if (this->custom_html != NULL) {
html += this->custom_html;
}
else
{
} else {
html += ota_version_html;
}
@ -223,8 +220,7 @@ void WebOTA::delay(unsigned int ms) {
}
}
void WebOTA::set_custom_html(char const * const html)
{
void WebOTA::set_custom_html(char const * const html) {
this->custom_html = html;
}
///////////////////////////////////////////////////////////////////////////