File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -14,19 +14,19 @@ export async function load() {
1414 const token = import . meta. env . VITE_GITHUB_TOKEN ;
1515
1616 const repoResponse = await fetch ( orgReposURL , {
17- headers : {
18- Authorization : `Bearer ${ token } ` ,
19- } ,
20- } ) ;
17+ headers : {
18+ Authorization : `Bearer ${ token } `
19+ }
20+ } ) ;
2121
22- if ( ! repoResponse . ok ) {
23- console . error ( 'Failed to fetch repositories:' , repoResponse . statusText ) ;
24- throw new Error ( 'Failed to fetch repositories' ) ;
25- }
22+ if ( ! repoResponse . ok ) {
23+ console . error ( 'Failed to fetch repositories:' , repoResponse . statusText ) ;
24+ throw new Error ( 'Failed to fetch repositories' ) ;
25+ }
2626
27- const repos : { name : string } [ ] = await repoResponse . json ( ) ;
27+ const repos : { name : string } [ ] = await repoResponse . json ( ) ;
2828
29- const gitHubRepos : string [ ] = repos . map ( ( repo : { name : string } ) => repo . name ) ;
29+ const gitHubRepos : string [ ] = repos . map ( ( repo : { name : string } ) => repo . name ) ;
3030
3131 const urls : string [ ] = gitHubRepos . map ( ( repo ) => `${ baseURL } ${ repo } /contributors` ) ;
3232
@@ -48,6 +48,6 @@ export async function load() {
4848 return {
4949 features,
5050 posts,
51- allContributors : uniqueContributors ,
51+ allContributors : uniqueContributors
5252 } ;
5353}
You can’t perform that action at this time.
0 commit comments