mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-23 16:48:41 -05:00
switch to using dedicated functions to create\throw errors
This commit is contained in:
@@ -82,7 +82,7 @@ namespace ts.server {
|
||||
|
||||
getDefaultProject() {
|
||||
if (this.containingProjects.length === 0) {
|
||||
throw Errors.NoProject;
|
||||
return Errors.ThrowNoProject();
|
||||
}
|
||||
Debug.assert(this.containingProjects.length !== 0);
|
||||
return this.containingProjects[0];
|
||||
|
||||
Reference in New Issue
Block a user