From 2e3cfb44f43b1c1648cfd06a79680efc691a4c47 Mon Sep 17 00:00:00 2001 From: Ryan D McGuire Date: Sun, 5 Jan 2025 17:37:14 -0500 Subject: [PATCH] Don't enrich nil updates --- pkg/ambient/ambient.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/ambient/ambient.go b/pkg/ambient/ambient.go index 7625e25..b7c1a75 100644 --- a/pkg/ambient/ambient.go +++ b/pkg/ambient/ambient.go @@ -85,6 +85,7 @@ func (aw *AmbientWeather) handleProviderRequest( w.WriteHeader(http.StatusInternalServerError) w.Write([]byte(err.Error())) + return } // Calculate any fields that may be missing