ci: Enforce noUnusedLocals on all backend and nodes packages (no-changelog) (#8428)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-01-25 14:33:35 +01:00
committed by GitHub
parent 16a2ea5df0
commit cc2f0ada76
15 changed files with 33 additions and 93 deletions

View File

@@ -1,6 +1,5 @@
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
/* eslint-disable @typescript-eslint/no-unused-vars */
import { MessageEventBusDestination } from './MessageEventBusDestination.ee';
import axios from 'axios';
@@ -133,7 +132,6 @@ export class MessageEventBusDestinationWebhook
const sendQuery = this.sendQuery;
const specifyQuery = this.specifyQuery;
const sendPayload = this.sendPayload;
const sendHeaders = this.sendHeaders;
const specifyHeaders = this.specifyHeaders;
@@ -287,8 +285,6 @@ export class MessageEventBusDestinationWebhook
let httpDigestAuth;
let httpHeaderAuth;
let httpQueryAuth;
let oAuth1Api;
let oAuth2Api;
if (this.authentication === 'genericCredentialType') {
if (this.genericAuthType === 'httpBasicAuth') {
@@ -307,14 +303,6 @@ export class MessageEventBusDestinationWebhook
try {
httpQueryAuth = await this.matchDecryptedCredentialType('httpQueryAuth');
} catch {}
} else if (this.genericAuthType === 'oAuth1Api') {
try {
oAuth1Api = await this.matchDecryptedCredentialType('oAuth1Api');
} catch {}
} else if (this.genericAuthType === 'oAuth2Api') {
try {
oAuth2Api = await this.matchDecryptedCredentialType('oAuth2Api');
} catch {}
}
}