Strict null check files in base/common

This commit is contained in:
Matt Bierner
2018-10-16 14:20:38 -07:00
parent 9b8d59a0ab
commit be7b3e4b2b
8 changed files with 53 additions and 99 deletions

View File

@@ -76,11 +76,11 @@ ${this.getInfos()}
|| this._data.issueType === IssueType.PerformanceIssue
|| this._data.issueType === IssueType.FeatureRequest;
return fileOnExtensionSupported && this._data.fileOnExtension;
return !!(fileOnExtensionSupported && this._data.fileOnExtension);
}
private getExtensionVersion(): string {
if (this.fileOnExtension()) {
if (this.fileOnExtension() && this._data.selectedExtension) {
return `\nExtension version: ${this._data.selectedExtension.manifest.version}`;
} else {
return '';