From f72f86e595fd11a10b93a7084f95c284d5d3f28c Mon Sep 17 00:00:00 2001 From: Cody Marcoux Date: Fri, 30 Aug 2024 10:08:32 -0400 Subject: [PATCH] Revert "Fix type error" This reverts commit 6d3bec43a75bf474c7c3b8cb1822ee8c9b9ddebe. --- music-rpc.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/music-rpc.ts b/music-rpc.ts index 7ff91a1..84c82c4 100755 --- a/music-rpc.ts +++ b/music-rpc.ts @@ -82,9 +82,7 @@ function getProps(): Promise { //#endregion //#region iTunes Search API -async function getTrackExtras( - props: iTunesProps -): Promise { +async function getTrackExtras(props: iTunesProps): Promise { const { name, artist, album } = props; const cacheIndex = `${name} ${artist} ${album}`; const entry = await kv.get(["extras", cacheIndex]); @@ -103,7 +101,7 @@ async function _getTrackExtras( artist: string, album: string, retryCount: number = 3 -): Promise { +): Promise { // Asterisks tend to result in no songs found, and songs are usually able to be found without it const query = `${song} ${artist} ${album}`.replace("*", ""); const params = new URLSearchParams({