*Change to ternary and return null if there is a stream
This commit is contained in:
parent
9ebee0eefd
commit
cd7f89b617
|
@ -194,9 +194,7 @@ async function fetchFromRelays(
|
||||||
throw new Error(resp.error);
|
throw new Error(resp.error);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!stream) {
|
return !!stream ? null : resp.data;
|
||||||
return resp.data;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
throw error;
|
throw error;
|
||||||
|
|
Loading…
Reference in New Issue