Additional *manual* unicorn/prefer-ternary changes

Not all cases could be automatically fixed, and the changes also triggered a number of `prefer-const` errors that needed to be handled manually.
This commit is contained in:
Jonas Jenwald 2023-07-27 09:38:11 +02:00
parent 674e7ee381
commit c0fe96b8fe
13 changed files with 20 additions and 55 deletions

View file

@ -385,8 +385,7 @@ function decodeScan(
let mcu = 0,
fileMarker;
let mcuExpected;
mcuExpected =
const mcuExpected =
componentsLength === 1
? components[0].blocksPerLine * components[0].blocksPerColumn
: mcusPerLine * frame.mcusPerColumn;