mirror of
https://github.com/reality/dbot.git
synced 2024-12-18 00:22:35 +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 |