mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
An experimental attempt to kill the zombie processes
This commit is contained in:
committed by
Chris Cummer
parent
202d5ca95e
commit
62502c24d0
@@ -7,12 +7,14 @@ import (
|
||||
)
|
||||
|
||||
func Fetch() *owm.CurrentWeatherData {
|
||||
w, err := owm.NewCurrent("C", "EN", os.Getenv("WTF_OWM_API_KEY"))
|
||||
apiKey := os.Getenv("WTF_OWM_API_KEY")
|
||||
|
||||
weather, err := owm.NewCurrent("C", "EN", apiKey)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
w.CurrentByID(6173331)
|
||||
weather.CurrentByID(6173331)
|
||||
|
||||
return w
|
||||
return weather
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user