Skip to content

Commit 6ae543b

Browse files
author
Zhengbo Li
committed
Remove unnecessary checking
1 parent bbf1105 commit 6ae543b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/server/session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ namespace ts.server {
854854
highPriorityFiles.push(fileNameInProject);
855855
else {
856856
let info = this.projectService.getScriptInfo(fileNameInProject);
857-
if (!info || !info.isOpen) {
857+
if (!info.isOpen) {
858858
if (fileNameInProject.indexOf(".d.ts") > 0)
859859
veryLowPriorityFiles.push(fileNameInProject);
860860
else

0 commit comments

Comments
 (0)