fix: 修复 build 错误

This commit is contained in:
sealday 2024-04-07 05:43:12 +08:00
parent e689d35072
commit 779fa67b6c

View File

@ -151,7 +151,6 @@ export async function getLyricsBySongId(
): Promise<string | null> {
let result: AxiosResponse<any, any>;
try {
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- debug
result = await axios.get(LYRICS_URL, {
params: {
id: songId,
@ -164,7 +163,6 @@ export async function getLyricsBySongId(
return null;
}
// eslint-disable-next-line @typescript-eslint/no-unsafe-return -- ddd
return result.data.klyric?.lyric || result.data.lrc?.lyric;
}