Skip to content

Commit

Permalink
Revert "Fix type error"
Browse files Browse the repository at this point in the history
This reverts commit 6d3bec4.
  • Loading branch information
shiibe committed Aug 30, 2024
1 parent 6d3bec4 commit f72f86e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions music-rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ function getProps(): Promise<iTunesProps> {
//#endregion

//#region iTunes Search API
async function getTrackExtras(
props: iTunesProps
): Promise<TrackExtras | undefined | null> {
async function getTrackExtras(props: iTunesProps): Promise<TrackExtras> {
const { name, artist, album } = props;
const cacheIndex = `${name} ${artist} ${album}`;
const entry = await kv.get<TrackExtras>(["extras", cacheIndex]);
Expand All @@ -103,7 +101,7 @@ async function _getTrackExtras(
artist: string,
album: string,
retryCount: number = 3
): Promise<TrackExtras | undefined | null> {
): Promise<TrackExtras | undefined> {
// 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({
Expand Down

0 comments on commit f72f86e

Please sign in to comment.