fix: code style

This commit is contained in:
CMEONE
2024-11-11 21:13:49 -06:00
parent 13b154b71c
commit 27971f7d5a

View File

@@ -24,7 +24,7 @@ type ContributorStats = {
type ContributorUser = { type ContributorUser = {
name: string; name: string;
} };
type FetchResult<T> = { type FetchResult<T> = {
data: T; data: T;
@@ -172,9 +172,9 @@ export class GitHubStatsService {
name = cachedName.data; name = cachedName.data;
} else { } else {
try { try {
const data = await this.fetchWithRetry(() => const data = (await this.fetchWithRetry(() =>
this.fetchGitHub(`/users/${contributor}`) this.fetchGitHub(`/users/${contributor}`)
) as ContributorUser; )) as ContributorUser;
if (data.name) { if (data.name) {
name = data.name; name = data.name;
} }