Remove superfluous WriteHeader calls
This commit is contained in:
parent
808482b370
commit
2495ce5808
3 changed files with 0 additions and 6 deletions
|
|
@ -32,8 +32,6 @@ func EnvironmentSensor(
|
|||
resp.Value = newState
|
||||
resp.LastChange = time.Now().Unix()
|
||||
|
||||
// Respond with OK
|
||||
w.WriteHeader(http.StatusOK)
|
||||
_, _ = io.WriteString(w, "Update Successful")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue