diff --git a/handlers/sensors.go b/handlers/sensors.go index 0c30346..bd881fb 100644 --- a/handlers/sensors.go +++ b/handlers/sensors.go @@ -1,7 +1,6 @@ package handlers import ( - "io" "log" "math" "net/http" @@ -34,7 +33,5 @@ func EnvironmentSensor( // Set SpaceAPI response values resp.Value = newState resp.LastChange = time.Now().Unix() - - _, _ = io.WriteString(w, "Update Successful") } } diff --git a/handlers/state.go b/handlers/state.go index 72384e5..0ec9727 100644 --- a/handlers/state.go +++ b/handlers/state.go @@ -1,7 +1,6 @@ package handlers import ( - "io" "log" "net/http" "strconv" @@ -33,7 +32,5 @@ func StateOpen( // Set SpaceAPI response values resp.Open = newState resp.LastChange = time.Now().Unix() - - _, _ = io.WriteString(w, "Update Successful") } }