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
|
||||
result = convertedSpec.output.filter(returnCollections);
|
||||
result.forEach((collection) => {
|
||||
convertedCollections.push(collection);
|
||||
});
|
||||
convertedCollections.push(result[0]);
|
||||
}
|
||||
else {
|
||||
conversionResult = conversionResult || convertedSpec.result;
|
||||
|
||||
Reference in New Issue
Block a user