Skip to content

Commit 4b39d79

Browse files
ci(pre-commit): Apply automatic fixes
1 parent 9843eb1 commit 4b39d79

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

libraries/Update/src/Updater.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ bool UpdateClass::begin(size_t size, int command, int ledPin, uint8_t ledOn, con
134134
log_w("already running");
135135
return false;
136136
}
137-
137+
138138
_ledPin = ledPin;
139139
_ledOn = !!ledOn; // 0(LOW) or 1(HIGH)
140140

libraries/WebServer/src/Parsing.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ bool WebServer::_parseRequest(NetworkClient &client) {
205205
log_v("Finish Raw");
206206
} else if (!isForm) {
207207
size_t plainLength;
208-
char *plainBuf = readBytesWithTimeout(client, _clientContentLength, plainLength, HTTP_MAX_POST_WAIT);
209-
if (plainLength < (size_t)_clientContentLength) {
208+
char *plainBuf = readBytesWithTimeout(client, _clientContentLength, plainLength, HTTP_MAX_POST_WAIT);
209+
if (plainLength < (size_t)_clientContentLength) {
210210
free(plainBuf);
211211
return false;
212212
}
@@ -432,7 +432,7 @@ bool WebServer::_parseForm(NetworkClient &client, const String &boundary, uint32
432432

433433
line = client.readStringUntil('\r');
434434
client.readStringUntil('\n');
435-
if (line.length() > (size_t)19 && line.substring(0, 19).equalsIgnoreCase(F("Content-Disposition"))) {
435+
if (line.length() > (size_t)19 && line.substring(0, 19).equalsIgnoreCase(F("Content-Disposition"))) {
436436
int nameStart = line.indexOf('=');
437437
if (nameStart != -1) {
438438
argName = line.substring(nameStart + 2);

0 commit comments

Comments
 (0)