mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
removed loop because convertedSpec can only has one collection
This commit is contained in:
4
index.js
4
index.js
@@ -78,9 +78,7 @@ module.exports = {
|
|||||||
|
|
||||||
// filtering out the collections from the convertedSpec
|
// filtering out the collections from the convertedSpec
|
||||||
result = convertedSpec.output.filter(returnCollections);
|
result = convertedSpec.output.filter(returnCollections);
|
||||||
result.forEach((collection) => {
|
convertedCollections.push(result[0]);
|
||||||
convertedCollections.push(collection);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
conversionResult = conversionResult || convertedSpec.result;
|
conversionResult = conversionResult || convertedSpec.result;
|
||||||
|
|||||||
Reference in New Issue
Block a user