Lint project

This commit is contained in:
2022-07-14 16:02:31 +02:00
parent f379ca7ff8
commit 48b01c6b2b
89 changed files with 144 additions and 124 deletions

View File

@@ -7,9 +7,9 @@ import {
fetchStatistics,
fetchWeeklyStatistics,
} from 'App/Utils/StatsUtils'
import { Stats } from 'App/Types/IStats'
import type { Stats } from 'App/Types/IStats'
import { getCurrentPlayingFromCache } from 'App/Utils/SongUtils'
import { GithubReason, GithubRequest } from 'App/Types/IGithub'
import type { GithubReason, GithubRequest } from 'App/Types/IGithub'
export async function updateGithubReadmeStats(): Promise<void> {
const daily_stats = await fetchDailyStatistics()
@@ -84,9 +84,9 @@ async function getReadmeContent(): Promise<GithubRequest | null> {
})
return response.status === 200
? {
content: Buffer.from(response.data.content, 'base64').toString(),
sha: response.data.sha,
}
content: Buffer.from(response.data.content, 'base64').toString(),
sha: response.data.sha,
}
: null
}