mirror of https://github.com/espruino/BangleApps
Fix lint warnings.
Loop variables had warnings for being undefinied. Added the "let" keyword where they are initialized.pull/3722/head
parent
e007d05e97
commit
00cd02bcb8
|
@ -227,8 +227,8 @@ const drawCalendar = function(date) {
|
||||||
}, []);
|
}, []);
|
||||||
let i = 0;
|
let i = 0;
|
||||||
g.setFont("8x12", fontSize);
|
g.setFont("8x12", fontSize);
|
||||||
for (y = 0; y < rowN - 1; y++) {
|
for (let y = 0; y < rowN - 1; y++) {
|
||||||
for (x = 0; x < colN; x++) {
|
for (let x = 0; x < colN; x++) {
|
||||||
i++;
|
i++;
|
||||||
const day = days[i];
|
const day = days[i];
|
||||||
const curMonth = day < 15 ? month+1 : day < 50 ? month-1 : month;
|
const curMonth = day < 15 ? month+1 : day < 50 ? month-1 : month;
|
||||||
|
|
Loading…
Reference in New Issue