Skip to content

Commit 30a30f9

Browse files
committed
use const _promise to indicate that we do not need await an async function
1 parent dc34b80 commit 30a30f9

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

web_src/js/features/common-global.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export function initGlobalDropzone() {
139139
// Dropzone
140140
for (const el of document.querySelectorAll('.dropzone')) {
141141
const $dropzone = $(el);
142-
const _ = createDropzone(el, {
142+
const _promise = createDropzone(el, {
143143
url: $dropzone.data('upload-url'),
144144
headers: {'X-Csrf-Token': csrfToken},
145145
maxFiles: $dropzone.data('max-file'),

web_src/js/features/notification.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export function initNotificationCount() {
6666
return;
6767
}
6868
if (event.data.type === 'notification-count') {
69-
const _ = receiveUpdateCount(event.data);
69+
const _promise = receiveUpdateCount(event.data);
7070
} else if (event.data.type === 'error') {
7171
console.error(event.data);
7272
} else if (event.data.type === 'logout') {

web_src/js/features/repo-settings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export function initRepoSettingSearchTeamBox() {
4343
export function initRepoSettingGitHook() {
4444
if ($('.edit.githook').length === 0) return;
4545
const filename = document.querySelector('.hook-filename').textContent;
46-
const _ = createMonaco($('#content')[0], filename, {language: 'shell'});
46+
const _promise = createMonaco($('#content')[0], filename, {language: 'shell'});
4747
}
4848

4949
export function initRepoSettingBranches() {

web_src/js/markup/content.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {initMarkupTasklist} from './tasklist.js';
33

44
// code that runs for all markup content
55
export function initMarkupContent() {
6-
const _ = renderMermaid(document.querySelectorAll('code.language-mermaid'));
6+
const _promise = renderMermaid(document.querySelectorAll('code.language-mermaid'));
77
}
88

99
// code that only runs for comments

0 commit comments

Comments
 (0)