mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
remove unnecesary method
remove unnecesary method
This commit is contained in:
committed by
Erik Mendoza
parent
8245b36f2d
commit
e98d8af870
@@ -33,7 +33,7 @@ let path = require('path'),
|
||||
|
||||
class SchemaPack {
|
||||
constructor (input, options = {}) {
|
||||
if (this.checkInputIsDetectRoot(input)) {
|
||||
if (input.type === 'folder' && input.data && input.data[0] && input.data[0].path) {
|
||||
input = schemaUtils.mapDetectRootFilesInputToFolderInput(input);
|
||||
}
|
||||
this.input = input;
|
||||
@@ -66,10 +66,6 @@ class SchemaPack {
|
||||
this.validate();
|
||||
}
|
||||
|
||||
checkInputIsDetectRoot(input) {
|
||||
return input.type === 'folder' && input.data && input.data[0] && input.data[0].path;
|
||||
}
|
||||
|
||||
// need to store the schema here
|
||||
validate() {
|
||||
let input = this.input,
|
||||
|
||||
Reference in New Issue
Block a user