Skip to content

Commit

Permalink
Merge pull request #877 from the9000/the9000-issue-876-loadSync-TypeE…
Browse files Browse the repository at this point in the history
…rror

Fix a TypeError loading a non-existent proto file.
  • Loading branch information
murgatroid99 committed Jul 29, 2019
2 parents f25e3cd + 8f72412 commit c106315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/proto-loader/src/index.ts
Expand Up @@ -121,7 +121,7 @@ function getAllHandledReflectionObjects(
if (isHandledReflectionObject(obj)) {
return [[objName, obj]];
} else {
if (isNamespaceBase(obj) && typeof obj.nested !== undefined) {
if (isNamespaceBase(obj) && typeof obj.nested !== 'undefined') {
return Object.keys(obj.nested!)
.map((name) => {
return getAllHandledReflectionObjects(obj.nested![name], objName);
Expand Down

0 comments on commit c106315

Please sign in to comment.