simplified a conditional

This commit is contained in:
Arthur Ozga
2015-08-06 14:31:52 -07:00
parent 6b1838caec
commit 400fc30e9d
2 changed files with 4 additions and 5 deletions

View File

@@ -1062,4 +1062,4 @@ namespace ts {
: declareSymbolAndAddToSymbolTable(node, symbolFlags, symbolExcludes);
}
}
}
}

View File

@@ -1946,12 +1946,11 @@ module FourSlash {
let actual = this.languageService.getDocCommentTemplateAtPosition(this.activeFile.fileName, this.currentCaretPosition);
if (expected === undefined) {
if (actual === undefined) {
return;
}
else {
if (actual) {
this.raiseError(name + ' failed - expected no template but got {newText: \"' + actual.newText + '\" caretOffset: ' + actual.caretOffset + '}');
}
return;
}
else {
if (actual === undefined) {