Compare commits
No commits in common. "2e3cfb44f43b1c1648cfd06a79680efc691a4c47" and "96dfcf7e5317d5a6be3bb1ae29a65685af5a8b7d" have entirely different histories.
2e3cfb44f4
...
96dfcf7e53
@ -85,7 +85,6 @@ func (aw *AmbientWeather) handleProviderRequest(
|
||||
|
||||
w.WriteHeader(http.StatusInternalServerError)
|
||||
w.Write([]byte(err.Error()))
|
||||
return
|
||||
}
|
||||
|
||||
// Calculate any fields that may be missing
|
||||
|
@ -5,10 +5,6 @@ import "math"
|
||||
// Attempts to complete missing fields that may not
|
||||
// be set by a specific provider, such as DewPoint and WindChill
|
||||
func (u *WeatherUpdate) Enrich() {
|
||||
if u == nil {
|
||||
return
|
||||
}
|
||||
|
||||
if u.WindChillF == 0 {
|
||||
u.WindChillF = CalculateWindChill(u.TempOutdoorF, u.WindSpeedMPH)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user