mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +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
@@ -799,11 +799,11 @@ export function installedNodePayload(packageName: string): InstalledNodePayload
|
||||
};
|
||||
}
|
||||
|
||||
export const emptyPackage = () => {
|
||||
export const emptyPackage = async () => {
|
||||
const installedPackage = new InstalledPackages();
|
||||
installedPackage.installedNodes = [];
|
||||
|
||||
return Promise.resolve(installedPackage);
|
||||
return installedPackage;
|
||||
};
|
||||
|
||||
// ----------------------------------
|
||||
|
||||
Reference in New Issue
Block a user