File tree Expand file tree Collapse file tree
extensions/ql-vscode/src/remote-queries Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -153,10 +153,10 @@ export function hasRepoScanCompleted(repo: VariantAnalysisScannedRepository): bo
153153
154154/**
155155 * @param repo
156- * @returns whether the repo scan is complete and has results that can be downloaded
156+ * @returns whether the repo scan has an artifact that can be downloaded
157157 */
158- export function repoScanHasResults ( repo : VariantAnalysisScannedRepository ) : boolean {
159- return repo . analysisStatus === VariantAnalysisRepoStatus . Succeeded && ( repo . resultCount || 0 ) > 0 ;
158+ export function repoHasDownloadableArtifact ( repo : VariantAnalysisScannedRepository ) : boolean {
159+ return repo . analysisStatus === VariantAnalysisRepoStatus . Succeeded ;
160160}
161161
162162/**
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import {
1212} from './gh-api/variant-analysis' ;
1313import {
1414 hasRepoScanCompleted ,
15- repoScanHasResults ,
15+ repoHasDownloadableArtifact ,
1616 VariantAnalysis , VariantAnalysisQueryLanguage ,
1717 VariantAnalysisScannedRepository ,
1818 VariantAnalysisScannedRepositoryDownloadStatus ,
@@ -87,7 +87,7 @@ export class VariantAnalysisManager extends DisposableObject implements VariantA
8787 private async isVariantAnalysisRepoComplete ( variantAnalysisId : number , repo : VariantAnalysisScannedRepository ) : Promise < boolean > {
8888 if ( ! hasRepoScanCompleted ( repo ) ) {
8989 return false ;
90- } else if ( ! repoScanHasResults ( repo ) ) {
90+ } else if ( ! repoHasDownloadableArtifact ( repo ) ) {
9191 return true ;
9292 } else {
9393 const storageLocation = this . getVariantAnalysisStorageLocation ( variantAnalysisId ) ;
You can’t perform that action at this time.
0 commit comments