chore: fix linter

This commit is contained in:
andig 2022-12-16 11:03:50 +01:00
parent 8be06fbb9d
commit 40f55e8bfb

View file

@ -314,7 +314,11 @@ func targetChargeHandler(loadpoint targetCharger) http.HandlerFunc {
// targetChargeRemoveHandler removes target soc
func targetChargeRemoveHandler(loadpoint loadpoint.API) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
loadpoint.SetTargetCharge(time.Time{}, 0)
if err := loadpoint.SetTargetCharge(time.Time{}, 0); err != nil {
jsonError(w, http.StatusBadRequest, err)
return
}
res := struct{}{}
jsonResult(w, res)
}