Skip to content

Commit 400fc30

Browse files
author
Arthur Ozga
committed
simplified a conditional
1 parent 6b1838c commit 400fc30

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

‎src/compiler/binder.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1062,4 +1062,4 @@ namespace ts {
10621062
: declareSymbolAndAddToSymbolTable(node, symbolFlags, symbolExcludes);
10631063
}
10641064
}
1065-
}
1065+
}

‎src/harness/fourslash.ts‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1946,12 +1946,11 @@ module FourSlash {
19461946
let actual = this.languageService.getDocCommentTemplateAtPosition(this.activeFile.fileName, this.currentCaretPosition);
19471947

19481948
if (expected === undefined) {
1949-
if (actual === undefined) {
1950-
return;
1951-
}
1952-
else {
1949+
if (actual) {
19531950
this.raiseError(name + ' failed - expected no template but got {newText: \"' + actual.newText + '\" caretOffset: ' + actual.caretOffset + '}');
19541951
}
1952+
1953+
return;
19551954
}
19561955
else {
19571956
if (actual === undefined) {

0 commit comments

Comments
 (0)