*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);
|
||||
}
|
||||
|
||||
if (!stream) {
|
||||
return resp.data;
|
||||
}
|
||||
return !!stream ? null : resp.data;
|
||||
}
|
||||
|
||||
throw error;
|
||||
|
|
Loading…
Reference in New Issue