Skip to content

Commit 83c35ad

Browse files
Addressed CR feedback.
1 parent 0e93d28 commit 83c35ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/parser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ module ts {
411411
while (true) {
412412
node = node.parent;
413413
if (!node) {
414-
return node;
414+
return undefined;
415415
}
416416
switch (node.kind) {
417417
case SyntaxKind.ArrowFunction:
@@ -438,7 +438,7 @@ module ts {
438438
while (true) {
439439
node = node.parent;
440440
if (!node) {
441-
return node;
441+
return undefined;
442442
}
443443
switch (node.kind) {
444444
case SyntaxKind.Property:

0 commit comments

Comments
 (0)