*Change to ternary and return null if there is a stream

This commit is contained in:
Derrick Hammer 2022-09-20 06:16:45 -04:00
parent 9ebee0eefd
commit cd7f89b617
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 3 deletions

View File

@ -194,9 +194,7 @@ async function fetchFromRelays(
throw new Error(resp.error);
}
if (!stream) {
return resp.data;
}
return !!stream ? null : resp.data;
}
throw error;