Update build.js

This commit is contained in:
Stripes
2022-10-27 00:38:25 +03:00
committed by GitHub
parent bcc3f7edfd
commit a7e00e7d96
+1 -5
View File
@@ -305,8 +305,6 @@ needle.get(`https://${config['netlify-domain']}/lastUpdate.json`, config.needle,
}
const newAddons = []
let firstOne = false
let secondOne = false
const queue = asyncQueue((task, cb) => {
const processManifest = addonManifest => {
@@ -320,9 +318,7 @@ needle.get(`https://${config['netlify-domain']}/lastUpdate.json`, config.needle,
transportName: 'http',
manifest: addonManifest,
})
if (!firstOne || !secondOne || oldAddonList.length && !oldAddonList.find(el => ((el || {}).manifest || {}).id === addonManifest.id)) {
if (firstOne) secondOne = true
firstOne = true
if (oldAddonList.length && !oldAddonList.find(el => ((el || {}).manifest || {}).id === addonManifest.id)) {
task.manifest = addonManifest
newAddons.push(task)
}