Skip to content

Commit 950a218

Browse files
Enable eslint rule to disallow awaiting a non-thenable type
1 parent 851a42f commit 950a218

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

extensions/ql-vscode/.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const baseConfig = {
2929
"plugin:@typescript-eslint/recommended",
3030
],
3131
rules: {
32+
"@typescript-eslint/await-thenable": "error",
3233
"@typescript-eslint/no-use-before-define": 0,
3334
"@typescript-eslint/no-unused-vars": [
3435
"warn",

extensions/ql-vscode/src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ export async function activate(
462462
) {
463463
registerErrorStubs([checkForUpdatesCommand], (command) => async () => {
464464
const installActionName = "Install CodeQL CLI";
465-
const chosenAction = await void showAndLogErrorMessage(
465+
const chosenAction = await showAndLogErrorMessage(
466466
`Can't execute ${command}: missing CodeQL CLI.`,
467467
{
468468
items: [installActionName],

0 commit comments

Comments
 (0)