diff --git a/index.js b/index.js index 2c01032..c16fae9 100644 --- a/index.js +++ b/index.js @@ -116,8 +116,10 @@ function checkAPI() { let items = []; for (let j = 0; j < data.length; j++) { - if (data[j] != undefined || data[j] != null) { + if (data[j] != undefined && data[j] != null) { items.push(SERVICE_FUNC[s](data[j])); + } else { + data.splice(j); } }