forked from GitHub/dbot
c7733ee382
The OpenWeatherMap API may return weather for areas unlinked to a city, on which body.name will be undefined. This would previously show up as (for example) "[ , United Kingdom]". This simple ternary will only return a comma if it is also returning a city name. |
||
---|---|---|
.. | ||
weather.js |