fix: code style
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user