mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor: Lint for no unneeded backticks (#5057) (no-changelog)
* ✨ Create rule `no-unneeded-backticks` * 👕 Enable rule * ⚡ Run rule on `cli` * ⚡ Run rule on `core` * ⚡ Run rule on `workflow` * ⚡ Rule rule on `design-system` * ⚡ Run rule on `node-dev` * ⚡ Run rule on `editor-ui` * ⚡ Run rule on `nodes-base`
This commit is contained in:
@@ -239,7 +239,7 @@ export class EmailReadImapV2 implements INodeType {
|
||||
const credentialsObject = await this.getCredentials('imap');
|
||||
const credentials = isCredentialsDataImap(credentialsObject) ? credentialsObject : undefined;
|
||||
if (!credentials) {
|
||||
throw new NodeOperationError(this.getNode(), `Credentials are not valid for imap node.`);
|
||||
throw new NodeOperationError(this.getNode(), 'Credentials are not valid for imap node.');
|
||||
}
|
||||
const mailbox = this.getNodeParameter('mailbox') as string;
|
||||
const postProcessAction = this.getNodeParameter('postProcessAction') as string;
|
||||
@@ -487,7 +487,7 @@ export class EmailReadImapV2 implements INodeType {
|
||||
try {
|
||||
searchCriteria = JSON.parse(options.customEmailConfig as string);
|
||||
} catch (error) {
|
||||
throw new NodeOperationError(this.getNode(), `Custom email config is not valid JSON.`);
|
||||
throw new NodeOperationError(this.getNode(), 'Custom email config is not valid JSON.');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -560,11 +560,11 @@ export class EmailReadImapV2 implements INodeType {
|
||||
return imapConnect(config).then(async (conn) => {
|
||||
conn.on('close', async (_hadError: boolean) => {
|
||||
if (isCurrentlyReconnecting) {
|
||||
Logger.debug(`Email Read Imap: Connected closed for forced reconnecting`);
|
||||
Logger.debug('Email Read Imap: Connected closed for forced reconnecting');
|
||||
} else if (closeFunctionWasCalled) {
|
||||
Logger.debug(`Email Read Imap: Shutting down workflow - connected closed`);
|
||||
Logger.debug('Email Read Imap: Shutting down workflow - connected closed');
|
||||
} else {
|
||||
Logger.error(`Email Read Imap: Connected closed unexpectedly`);
|
||||
Logger.error('Email Read Imap: Connected closed unexpectedly');
|
||||
this.emitError(new Error('Imap connection closed unexpectedly'));
|
||||
}
|
||||
});
|
||||
@@ -586,7 +586,7 @@ export class EmailReadImapV2 implements INodeType {
|
||||
|
||||
if (options.forceReconnect !== undefined) {
|
||||
reconnectionInterval = setInterval(async () => {
|
||||
Logger.verbose(`Forcing reconnect to IMAP server`);
|
||||
Logger.verbose('Forcing reconnect to IMAP server');
|
||||
try {
|
||||
isCurrentlyReconnecting = true;
|
||||
if (connection.closeBox) await connection.closeBox(false);
|
||||
|
||||
Reference in New Issue
Block a user