File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
extensions/ql-vscode/src/remote-queries Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -110,8 +110,8 @@ export async function exportResultsToGist(
110110const buildGistDescription = ( query : RemoteQuery , analysesResults : AnalysisResults [ ] ) => {
111111 const resultCount = sumAnalysesResults ( analysesResults ) ;
112112 const resultLabel = pluralize ( resultCount , 'result' , 'results' ) ;
113- const repositoryLabel = pluralize ( query . repositoryCount , 'repository' , 'repositories' ) ;
114- return `${ query . queryName } (${ query . language } ) ${ resultLabel } ( ${ repositoryLabel } ) ` ;
113+ const repositoryLabel = query . repositoryCount ? `( ${ pluralize ( query . repositoryCount , 'repository' , 'repositories' ) } )` : '' ;
114+ return `${ query . queryName } (${ query . language } ) ${ resultLabel } ${ repositoryLabel } ` ;
115115} ;
116116
117117/**
You can’t perform that action at this time.
0 commit comments