remove unnecesary method

remove unnecesary method
This commit is contained in:
Luis Tejeda
2022-04-20 12:32:32 -05:00
committed by Erik Mendoza
parent 8245b36f2d
commit e98d8af870

View File

@@ -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,