Porto-loader fromJSON rm if optiondir

This commit is contained in:
于北 2021-03-19 08:33:23 +08:00 committed by GitHub
parent 1143867682
commit 2ce608e1f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -400,9 +400,6 @@ export function fromJSON(
options?: Options
): PackageDefinition {
options = options || {};
if (!!options.includeDirs) {
throw new Error('The fromJSON does not need to load any files, checkout your options');
}
const loadedRoot = Protobuf.Root.fromJSON(json);
loadedRoot.resolveAll();
return createPackageDefinition(loadedRoot, options!);