diff --git a/lavanodes.json b/lavanodes.json deleted file mode 100644 index 9549f9c..0000000 --- a/lavanodes.json +++ /dev/null @@ -1,3 +0,0 @@ -[ - { "id": "1", "host": "localhost", "port": 2333, "password": "youshallnotpass" } -] \ No newline at end of file diff --git a/utils/image.js b/utils/image.js index 831b996..9c4e59a 100644 --- a/utils/image.js +++ b/utils/image.js @@ -65,11 +65,11 @@ exports.check = (cmd) => { exports.getType = async (image) => { if (!image.startsWith("http")) { - imageType = await fileType.fromFile(image) + const imageType = await fileType.fromFile(image); if (imageType && formats.includes(imageType.mime)) { return imageType.mime; } - return undefined + return undefined; } let type; const controller = new AbortController();