Skip to content

Commit ced3737

Browse files
committed
fix lint
1 parent 2953127 commit ced3737

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/esploader.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,14 +1422,14 @@ export class ESPLoader {
14221422

14231423
if (encryptedFiles && encryptedFiles.length > 0) {
14241424
let doWrite = true;
1425-
for (let f of encryptedFiles) {
1425+
for (const f of encryptedFiles) {
14261426
if (f.encrypted && this.chip.SUPPORTS_ENCRYPTED_FLASH && f.address % this.chip.FLASH_ENCRYPTED_WRITE_ALIGN) {
14271427
doWrite = false;
14281428
this.info(`File at address ${f.address} is not %d byte aligned, can't flash encrypted`);
14291429
}
14301430
}
14311431
if (!doWrite) {
1432-
let errMsg =
1432+
const errMsg =
14331433
"Can't perform encrypted flash write,\n" + "consult Flash Encryption documentation for more information";
14341434
this.debug(errMsg);
14351435
throw new ESPError(errMsg);
@@ -1442,9 +1442,8 @@ export class ESPLoader {
14421442
"Flashing plaintext binary may brick your device! ",
14431443
);
14441444
}
1445-
14461445
// TO DO
1447-
// Add esp.get_security_info
1446+
// Add esp.get_security_info
14481447
// esp.get_encrypted_download_disabled()
14491448
// and esp.get_flash_encryption_enabled()
14501449

0 commit comments

Comments
 (0)