Further improve a block with useless variables

pull/1145/head
Jacob Mischka 7 years ago
parent 31de60ece6
commit 2635de84a8
No known key found for this signature in database
GPG Key ID: 50A869F8CD9CBB9C

@ -779,11 +779,9 @@ export default class Generator {
contextDependencies.set(node.context, node.metadata.dependencies);
if (node.destructuredContexts) {
for (let i = 0; i < node.destructuredContexts.length; i += 1) {
const name = node.destructuredContexts[i];
node.destructuredContexts.forEach((name: string) => {
contextDependencies.set(name, node.metadata.dependencies);
}
});
}
contextDependenciesStack.push(contextDependencies);

Loading…
Cancel
Save