refactor: Delete unnecessary interface re-exports from core, and delete unused code in nodes-base (no-changelog) (#6631)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-07-12 11:15:38 +02:00
committed by GitHub
parent 329d22f5d1
commit e57e85edf7
152 changed files with 550 additions and 434 deletions

View File

@@ -1319,22 +1319,22 @@ export class Gitlab implements INodeType {
const items = this.getInputData();
const returnData: INodeExecutionData[] = [];
let _credentials;
// let _credentials;
const authenticationMethod = this.getNodeParameter('authentication', 0);
// const authenticationMethod = this.getNodeParameter('authentication', 0);
try {
if (authenticationMethod === 'accessToken') {
_credentials = await this.getCredentials('gitlabApi');
} else {
_credentials = await this.getCredentials('gitlabOAuth2Api');
}
} catch (error) {
if (this.continueOnFail()) {
return [this.helpers.returnJsonArray([{ error: error.message }])];
}
throw new NodeOperationError(this.getNode(), error as Error);
}
// try {
// if (authenticationMethod === 'accessToken') {
// _credentials = await this.getCredentials('gitlabApi');
// } else {
// _credentials = await this.getCredentials('gitlabOAuth2Api');
// }
// } catch (error) {
// if (this.continueOnFail()) {
// return [this.helpers.returnJsonArray([{ error: error.message }])];
// }
// throw new NodeOperationError(this.getNode(), error as Error);
// }
// Operations which overwrite the returned data
const overwriteDataOperations = [