Skip to content

Commit 03d0522

Browse files
committed
Fix null test
1 parent 642c99a commit 03d0522

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

wled00/ota_update.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -466,10 +466,6 @@ static void invalidateBootloaderSHA256Cache() {
466466
* @return true if validation passed, false otherwise
467467
*/
468468
static bool verifyBootloaderImage(const uint8_t* &buffer, size_t &len, String& bootloaderErrorMsg) {
469-
if (!bootloaderErrorMsg) {
470-
DEBUG_PRINTLN(F("bootloaderErrorMsg is null"));
471-
return false;
472-
}
473469
const size_t MIN_IMAGE_HEADER_SIZE = sizeof(esp_image_header_t);
474470

475471
// 1. Validate minimum size for header

0 commit comments

Comments
 (0)