Skip to content

Commit 19b54ba

Browse files
committed
Lint
1 parent b8a2b3b commit 19b54ba

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/js/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function renderBlogPosts() {
1515
}
1616

1717
const blog = new BlogRenderer();
18-
blog.renderPosts(blog_posts, template).then(_ => blog_section.classList.remove('hidden'));
18+
blog.renderPosts(blog_posts, template).then(() => blog_section.classList.remove('hidden'));
1919
}
2020

2121
function getDiscussTopics() {
@@ -27,12 +27,12 @@ function getDiscussTopics() {
2727
const topics = r.topic_list.topics.slice(0, 2);
2828
topics.forEach(topic => latestTopicIds.add(topic.id));
2929
drawTopics(topics, r.users);
30-
}).then(_ => {
30+
}).then(() => {
3131
return fetch(`${Discussion.ORIGIN}/top.json`);
3232
}).then(r => r.json()).then(r => {
3333
const topics = r.topic_list.topics.filter(topic => !latestTopicIds.has(topic.id)).slice(0, 3);
3434
drawTopics(topics, r.users);
35-
}).then(_ => discuss_section.classList.remove('hidden'));
35+
}).then(() => discuss_section.classList.remove('hidden'));
3636
}
3737

3838
function drawTopics(topics, rUsers) {

src/js/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const hamburger = document.querySelector('.hamburger');
44

55
if (mobileNav) {
66
if (hamburger) {
7-
hamburger.addEventListener('click', (e) => {
7+
hamburger.addEventListener('click', () => {
88
const expanded = hamburger.getAttribute('aria-expanded');
99
mobileNav.classList.toggle('active');
1010
hamburger.ariaExpanded = expanded === 'true' ? 'false' : 'true';

src/js/techreport/tableLinked.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class TableLinked {
115115
checkbox.setAttribute('data-name', `table-${this.id}`);
116116
checkbox.setAttribute('id', `${app}-table-${this.id}`);
117117
checkbox.setAttribute('name', `${app}-table-${this.id}`);
118-
checkbox.addEventListener('change', (e) => {
118+
checkbox.addEventListener('change', () => {
119119
const appLinks = document.querySelectorAll('[data-name="selected-apps"]');
120120
const selectedApps = document.querySelectorAll(`[data-name="table-${this.id}"]:checked`);
121121

0 commit comments

Comments
 (0)