remove yandere code :3

This commit is contained in:
Ashley 2022-12-24 10:48:55 +00:00
parent 653625c06f
commit eb41e742d3

View file

@ -37,15 +37,9 @@ function getJson(str) {
} }
function checkUnexistingObject(obj) { function checkUnexistingObject(obj) {
if (obj !== null) { if (Object.hasOwn(obj, "authorId")) {
if (obj.authorId !== null) {
if (obj !== undefined) {
if (obj.authorId !== undefined) {
return true; return true;
} }
}
}
}
} }
/* /*
@ -86,7 +80,6 @@ async function video(v) {
var vid = await getJson(video_new_info); var vid = await getJson(video_new_info);
if (checkUnexistingObject(vid)) { if (checkUnexistingObject(vid)) {
var a; var a;
try { try {
@ -96,7 +89,7 @@ async function video(v) {
.then((res) => res.text()) .then((res) => res.text())
.then((xml) => getJson(toJson(xml))); .then((xml) => getJson(toJson(xml)));
} catch { } catch {
var a = "" var a = "";
} }
const summary = await wiki const summary = await wiki