mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
refactor(core): Remove linting exceptions in nodes-base (no-changelog) (#4944)
This commit is contained in:
@@ -506,9 +506,8 @@ export class Redis implements INodeType {
|
||||
}
|
||||
try {
|
||||
const client = redis.createClient(redisOptions);
|
||||
// tslint:disable-next-line: no-any
|
||||
|
||||
const _data = await new Promise((resolve, reject): any => {
|
||||
await new Promise((resolve, reject): any => {
|
||||
client.on('connect', async () => {
|
||||
client.ping('ping', (error, pong) => {
|
||||
if (error) reject(error);
|
||||
@@ -703,7 +702,7 @@ export class Redis implements INodeType {
|
||||
const keyGet = this.getNodeParameter('key', itemIndex) as string;
|
||||
const keyType = this.getNodeParameter('keyType', itemIndex) as string;
|
||||
|
||||
const value = (await getValue(client, keyGet, keyType)) || null;
|
||||
const value = (await getValue(client, keyGet, keyType)) ?? null;
|
||||
|
||||
const options = this.getNodeParameter('options', itemIndex, {});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user