chore: fix linter
This commit is contained in:
parent
8be06fbb9d
commit
40f55e8bfb
1 changed files with 5 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue