Skip to content

Commit 21c98bc

Browse files
ci(pre-commit): Apply automatic fixes
1 parent f693411 commit 21c98bc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/AsyncWebServerRequest.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@ bool AsyncWebServerRequest::_getEtag(File gzFile, char *etag) {
7070
static constexpr char hexChars[] = "0123456789ABCDEF";
7171

7272
// Compressed file not found or invalid
73-
if (!gzFile.seek(gzFile.size() - 8))
73+
if (!gzFile.seek(gzFile.size() - 8)) {
7474
return false;
75+
}
7576

7677
uint8_t crcInTrailer[4];
7778
gzFile.read(crcInTrailer, 4);

src/WebResponses.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -734,9 +734,8 @@ AsyncFileResponse::AsyncFileResponse(FS &fs, const String &path, const char *con
734734
return;
735735
}
736736
}
737-
738-
_contentLength = _content.size();
739737

738+
_contentLength = _content.size();
740739

741740
if (*contentType == '\0') {
742741
_setContentTypeFromPath(path);

0 commit comments

Comments
 (0)