1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

removed useless condition in Refresh

This commit is contained in:
Hossein Mehrabi
2018-06-08 10:59:47 +04:30
parent 46978fdc8a
commit f33b756d02
20 changed files with 0 additions and 80 deletions

View File

@@ -74,10 +74,6 @@ func (widget *Widget) Fetch(cityIDs []int) []*owm.CurrentWeatherData {
// Refresh fetches new data from the OpenWeatherMap API and loads the new data into the.
// widget's view for rendering
func (widget *Widget) Refresh() {
if widget.Disabled() {
return
}
widget.Data = widget.Fetch(wtf.ToInts(Config.UList("wtf.mods.weather.cityids", widget.defaultCityCodes())))
widget.UpdateRefreshedAt()