Improve type safety
This commit is contained in:
@ -83,10 +83,7 @@ export class TimelineReader {
|
||||
return null;
|
||||
}
|
||||
|
||||
private static async getSongInfo(
|
||||
url: string,
|
||||
remainingTries: number = 6
|
||||
): Promise<SongInfo | null> {
|
||||
private static async getSongInfo(url: string, remainingTries = 6): Promise<SongInfo | null> {
|
||||
if (remainingTries === 0) {
|
||||
console.error('No tries remaining. Lookup failed!');
|
||||
return null;
|
||||
|
Reference in New Issue
Block a user