mirror of https://github.com/grpc/grpc-node.git
Porto-loader fromJSON rm if optiondir
This commit is contained in:
parent
1143867682
commit
2ce608e1f4
|
@ -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!);
|
||||
|
|
Loading…
Reference in New Issue