chore: remove unnecessary condition

This commit is contained in:
LuanRT
2022-02-01 18:49:17 -03:00
committed by GitHub
parent d5f884ff9b
commit c81e8e29ac

View File

@@ -10,7 +10,7 @@ let failed_tests = 0;
async function performTests() {
const youtube = await new Innertube().catch((error) => error);
assert(youtube instanceof Error ? false : true, `should retrieve Innertube configuration data`, youtube);
assert(!(youtube instanceof Error), `should retrieve Innertube configuration data`, youtube);
if (!(youtube instanceof Error)) {
const search = await youtube.search('Carl Sagan - Documentary').catch((error) => error);
@@ -58,4 +58,4 @@ function assert(outcome, description, data) {
return outcome;
}
performTests();
performTests();