Fix useless log generation
This commit is contained in:
parent
690d92e4fd
commit
a2fcffcfdc
@ -94,10 +94,8 @@ export async function onRequestPost(context: RequestContext) {
|
||||
if (p.status === "rejected")
|
||||
console.log(`Request to coconut failed: ${p}`);
|
||||
else {
|
||||
if (!p.value?.ok)
|
||||
console.log(
|
||||
`Request rejected by coconut: ${await (p.value as Response).text()}`,
|
||||
);
|
||||
if (p.value && !p.value.ok)
|
||||
console.log(`Request rejected by coconut: ${await p.value.text()}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user