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