From dfbaf8ef7f17844503453a902935c76646749a8e Mon Sep 17 00:00:00 2001 From: Scott Baker Date: Mon, 28 Sep 2020 09:00:16 -0700 Subject: [PATCH] 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. --- src/WebOTA.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/WebOTA.cpp b/src/WebOTA.cpp index 3583f02..99fbc50 100644 --- a/src/WebOTA.cpp +++ b/src/WebOTA.cpp @@ -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; } ///////////////////////////////////////////////////////////////////////////