mirror of
https://github.com/reality/dbot.git
synced 2024-12-26 04:32:37 +01:00
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 |