mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
ci: Remove unnecessary async/await, enable await-thenable linting rule (no-changelog) (#8076)
## Summary We accidentally made some functions `async` in https://github.com/n8n-io/n8n/pull/7846 This PR reverts that change. ## Review / Merge checklist - [x] PR title and summary are descriptive.
This commit is contained in:
committed by
GitHub
parent
a7ffed245a
commit
464b565283
@@ -1,7 +1,6 @@
|
||||
import util from 'util';
|
||||
import type {
|
||||
IExecuteFunctions,
|
||||
GenericValue,
|
||||
ICredentialDataDecryptedObject,
|
||||
ICredentialsDecrypted,
|
||||
ICredentialTestFunctions,
|
||||
@@ -757,17 +756,8 @@ export class Redis implements INodeType {
|
||||
continue;
|
||||
}
|
||||
|
||||
const promises: {
|
||||
[key: string]: GenericValue;
|
||||
} = {};
|
||||
|
||||
for (const keyName of keys) {
|
||||
promises[keyName] = await getValue(client, keyName);
|
||||
}
|
||||
|
||||
for (const keyName of keys) {
|
||||
// eslint-disable-next-line @typescript-eslint/await-thenable
|
||||
item.json[keyName] = await promises[keyName];
|
||||
item.json[keyName] = await getValue(client, keyName);
|
||||
}
|
||||
returnItems.push(item);
|
||||
} else if (operation === 'set') {
|
||||
|
||||
Reference in New Issue
Block a user