mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor: Async functions don't need to explicitly return promises (no-changelog) (#6041)
This commit is contained in:
committed by
GitHub
parent
03be725cef
commit
308a94311f
@@ -1236,13 +1236,7 @@ export class Workflow {
|
||||
return { data: null };
|
||||
}
|
||||
|
||||
let promiseResults;
|
||||
try {
|
||||
promiseResults = await Promise.all(returnPromises);
|
||||
} catch (error) {
|
||||
return Promise.reject(error);
|
||||
}
|
||||
|
||||
const promiseResults = await Promise.all(returnPromises);
|
||||
if (promiseResults) {
|
||||
return { data: [promiseResults] };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user