Skip to content

Commit 0c60155

Browse files
ci(pre-commit): Apply automatic fixes
1 parent ead44bd commit 0c60155

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/WebServer.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ const char *fs::FileOpenMode::append = "a";
3030

3131
AsyncWebServer::AsyncWebServer(uint16_t port) : _server(port) {
3232
_catchAllHandler = new AsyncCallbackWebHandler();
33-
if(!_catchAllHandler) {
34-
#ifdef ESP32
33+
if (!_catchAllHandler) {
34+
#ifdef ESP32
3535
log_e("Failed to allocate");
3636
#endif
3737
return;
@@ -56,7 +56,7 @@ AsyncWebServer::~AsyncWebServer() {
5656
reset();
5757
end();
5858
delete _catchAllHandler;
59-
_catchAllHandler = nullptr; // Prevent potential use-after-free
59+
_catchAllHandler = nullptr; // Prevent potential use-after-free
6060
}
6161

6262
AsyncWebRewrite &AsyncWebServer::addRewrite(std::shared_ptr<AsyncWebRewrite> rewrite) {

0 commit comments

Comments
 (0)