removed loop because convertedSpec can only has one collection

This commit is contained in:
Dhroov7
2019-12-10 13:11:38 +05:30
parent fcd54b1380
commit b349053c97

View File

@@ -78,9 +78,7 @@ module.exports = {
// filtering out the collections from the convertedSpec
result = convertedSpec.output.filter(returnCollections);
result.forEach((collection) => {
convertedCollections.push(collection);
});
convertedCollections.push(result[0]);
}
else {
conversionResult = conversionResult || convertedSpec.result;