fix error with errors

This commit is contained in:
Michael C
2021-08-28 01:48:48 -04:00
parent 1c2dd055c1
commit 7601a1d4bf
17 changed files with 29 additions and 29 deletions

View File

@@ -20,7 +20,7 @@ export class YouTubeAPI {
return { err: null, data: JSON.parse(data) };
}
} catch (err) {
return { err: err as string | boolean, data: null };
return { err, data: null };
}
}
@@ -45,7 +45,7 @@ export class YouTubeAPI {
return { err: result.statusText, data: null };
}
} catch (err) {
return {err: err as string | boolean, data: null};
return {err, data: null};
}
}
}