Remove redundant checks
This commit is contained in:
parent
9ce8d2eb0e
commit
f4288d227c
|
@ -19,17 +19,11 @@
|
||||||
|
|
||||||
const r2 = await fetch(`/api/v1/server/${id}/invites`);
|
const r2 = await fetch(`/api/v1/server/${id}/invites`);
|
||||||
if (r2.ok) {
|
if (r2.ok) {
|
||||||
const a = await r2.text();
|
invites = await r2.json();
|
||||||
if (a != "null") {
|
|
||||||
invites = await r2.json();
|
|
||||||
}
|
|
||||||
for (let invite in invites) {
|
for (let invite in invites) {
|
||||||
const logsReq = await fetch(`/api/v1/invite/${invites[invite].token}/log`)
|
const logsReq = await fetch(`/api/v1/invite/${invites[invite].token}/log`)
|
||||||
if (logsReq.ok) {
|
if (logsReq.ok) {
|
||||||
const b = await logsReq.text();
|
invites[invite]["log"] = await logsReq.json()
|
||||||
if (b != "null") {
|
|
||||||
invites[invite]["log"] = await logsReq.json()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue