mirror of
https://github.com/atom/atom.git
synced 2026-02-17 18:11:29 -05:00
Avoid ES6 because we run use this code in apm from node
This commit is contained in:
@@ -468,7 +468,11 @@ module.exports = class PackageManager {
|
||||
}
|
||||
|
||||
preloadPackages () {
|
||||
return Object.entries(this.packagesCache).map(p => this.preloadPackage(p[0], p[1]))
|
||||
const result = [];
|
||||
for (const packageName in this.packagesCache) {
|
||||
result.push(this.preloadPackage(packageName, this.packagesCache[packageName]));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
preloadPackage (packageName, pack) {
|
||||
|
||||
Reference in New Issue
Block a user