File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -387,12 +387,14 @@ export class ShowcaseScraper {
387387 return false ;
388388 }
389389
390- return error . errors . some ( ( entry ) => {
391- if ( ! entry || typeof entry !== 'object' || ! ( 'type' in entry ) ) {
392- return false ;
393- }
390+ return (
391+ error . errors ?. some ( ( entry ) => {
392+ if ( ! entry || typeof entry !== 'object' || ! ( 'type' in entry ) ) {
393+ return false ;
394+ }
394395
395- return entry . type === 'NOT_FOUND' ;
396- } ) ;
396+ return entry . type === 'NOT_FOUND' ;
397+ } ) ?? false
398+ ) ;
397399 }
398400}
Original file line number Diff line number Diff line change @@ -486,7 +486,7 @@ type TestGithubRepoLinkOptions = {
486486} ;
487487
488488type TestCommentLink = string | TestGithubRepoLinkOptions ;
489- type TestCommentLinks = string [ ] | { author ?: string ; links : TestCommentLink [ ] } ;
489+ type TestCommentLinks = TestCommentLink [ ] | { author ?: string ; links : TestCommentLink [ ] } ;
490490
491491interface TestRepoLanguage {
492492 node : {
You can’t perform that action at this time.
0 commit comments