Remove unused url variable
This commit is contained in:
parent
f4470ac2e9
commit
e31eb3f3e4
1 changed files with 0 additions and 1 deletions
|
@ -8,7 +8,6 @@ module.exports = async function (location) {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
timeout: 5000
|
timeout: 5000
|
||||||
}
|
}
|
||||||
const url = `https://wttr.in/${location}?format=4&M` // 4 = one line, M = metric wind speed
|
|
||||||
let success = false;
|
let success = false;
|
||||||
let weather = await new Promise((resolve, reject) => {
|
let weather = await new Promise((resolve, reject) => {
|
||||||
https.get(options, (res) => {
|
https.get(options, (res) => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue