Skip to content

Commit ec727a9

Browse files
committed
fix lint error in +page.server.ts
1 parent 65913e9 commit ec727a9

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/routes/(home)/+page.server.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)