refactor: Remove unused lint directives (no-changelog) (#9842)

This commit is contained in:
Iván Ovejero
2024-06-24 12:13:18 +02:00
committed by GitHub
parent 16d3083af7
commit 44ea4c73eb
92 changed files with 85 additions and 138 deletions

View File

@@ -20,6 +20,7 @@ import isbot from 'isbot';
import { file as tmpFile } from 'tmp-promise';
import jwt from 'jsonwebtoken';
import { formatPrivateKey } from '../../utils/utilities';
import {
authenticationProperty,
credentialsProperty,
@@ -39,7 +40,6 @@ import {
isIpWhitelisted,
setupOutputConnection,
} from './utils';
import { formatPrivateKey } from '../../utils/utilities';
export class Webhook extends Node {
authPropertyName = 'authentication';
@@ -330,7 +330,7 @@ export class Webhook extends Node {
}
const authHeader = req.headers.authorization;
const token = authHeader && authHeader.split(' ')[1];
const token = authHeader?.split(' ')[1];
if (!token) {
throw new WebhookAuthorizationError(401, 'No token provided');