Skip to content

Commit 90f0f65

Browse files
committed
Fix new linting issues
1 parent 03c66dd commit 90f0f65

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

frontend/src/common.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ export async function main(load, display) {
2222
// Full workflow, loading then displaying data
2323
// used for following updates
2424
const full = async function () {
25-
const data = await load();
26-
await display(data);
25+
const fullData = await load();
26+
await display(fullData);
2727
};
2828

2929
// React to url changes
@@ -47,9 +47,9 @@ function cacheSet(cache, key, value) {
4747
// If the cache got too big, remove all elements that were added more
4848
// than 15 minutes ago.
4949
if (Object.keys(cache).length > 100) {
50-
for (const key in cache) {
51-
if (cache[key].time < now - 15 * 60) {
52-
delete cache[key];
50+
for (const cacheKey in cache) {
51+
if (cache[cacheKey].time < now - 15 * 60) {
52+
delete cache[cacheKey];
5353
}
5454
}
5555
}
@@ -348,14 +348,14 @@ function canDisplay() {
348348
return document.readyState === "complete";
349349
}
350350

351-
export function message(cssClass, message) {
351+
export function message(cssClass, messageText) {
352352
if (!canDisplay()) {
353353
return;
354354
}
355355

356356
const box = document.getElementById("message");
357357
box.className = "message " + cssClass;
358-
box.textContent = message;
358+
box.textContent = messageText;
359359
box.style.display = "inherit";
360360
}
361361

frontend/src/zero_coverage_report.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ export function zeroCoverageMenu(route) {
6060
};
6161
}),
6262
last_pushes: Object.entries(ZERO_COVERAGE_PUSHES).map(
63-
([value, message]) => {
63+
([value, messageText]) => {
6464
return {
6565
value,
66-
message,
66+
messageText,
6767
selected: route.last_push === value,
6868
};
6969
},

0 commit comments

Comments
 (0)