Remove unused url variable
Some checks failed
njsscan sarif / njsscan code scanning (push) Failing after 1s
discord bot tests / discord bot tests (push) Successful in 11s

This commit is contained in:
SileNce5k 2024-10-24 02:19:29 +02:00
parent f4470ac2e9
commit e31eb3f3e4
Signed by: SileNce
GPG key ID: B0A142BB4291B204

View file

@ -8,7 +8,6 @@ module.exports = async function (location) {
method: 'GET',
timeout: 5000
}
const url = `https://wttr.in/${location}?format=4&M` // 4 = one line, M = metric wind speed
let success = false;
let weather = await new Promise((resolve, reject) => {
https.get(options, (res) => {