@@ -127,7 +127,7 @@ export class GitHubCache {
127127 * @private
128128 */
129129 #getOwnerKey( owner : string , type : OwnerKeyType , ...args : unknown [ ] ) {
130- const strArgs = args . map ( a => `:${ a } ` ) ;
130+ const strArgs = args . map ( a => `:${ a } ` ) . join ( "" ) ;
131131 return `owner:${ owner } :${ type } ${ strArgs } ` ;
132132 }
133133
@@ -144,7 +144,7 @@ export class GitHubCache {
144144 * @private
145145 */
146146 #getRepoKey( owner : string , repo : string , type : RepoKeyType , ...args : unknown [ ] ) {
147- const strArgs = args . map ( a => `:${ a } ` ) ;
147+ const strArgs = args . map ( a => `:${ a } ` ) . join ( "" ) ;
148148 return `repo:${ owner } /${ repo } :${ type } ${ strArgs } ` ;
149149 }
150150
@@ -159,7 +159,7 @@ export class GitHubCache {
159159 * @private
160160 */
161161 #getPackageKey( packageName : string , ...args : unknown [ ] ) {
162- const strArgs = args . map ( a => `:${ a } ` ) ;
162+ const strArgs = args . map ( a => `:${ a } ` ) . join ( "" ) ;
163163 return `package:${ packageName } ${ strArgs } ` ;
164164 }
165165
@@ -671,7 +671,7 @@ export class GitHubCache {
671671 *
672672 * @param owner the GitHub repository owner
673673 * @param repo the GitHub repository name
674- * @returns a list of issues, or `undefined` if not existing
674+ * @returns a list of issues, empty if not existing
675675 */
676676 async getAllIssues ( owner : string , repo : string ) {
677677 return await this . #processCached< Issue [ ] > ( ) (
@@ -698,7 +698,7 @@ export class GitHubCache {
698698 *
699699 * @param owner the GitHub repository owner
700700 * @param repo the GitHub repository name
701- * @returns a list of pull requests, or `undefined` if not existing
701+ * @returns a list of pull requests, empty if not existing
702702 */
703703 async getAllPRs ( owner : string , repo : string ) {
704704 return await this . #processCached< ListedPullRequest [ ] > ( ) (
0 commit comments