Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinmclean committed Sep 9, 2024
1 parent b543e7d commit 02a8b1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions garden-app/worker/water_schedule_actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (w *Worker) ExecuteScheduledWaterAction(g *pkg.Garden, z *pkg.Zone, ws *pkg
w.logger.Info("skipping watering Zone because of SkipCount", "zone_id", z.GetID())
return nil
}
duration, err := w.exerciseWeatherControl(g, z, ws)
duration, err := w.exerciseWeatherControl(ws)
if err != nil {
w.logger.Error("error executing weather controls, continuing to water", "error", err)
duration = ws.Duration.Duration
Expand All @@ -40,7 +40,7 @@ func (w *Worker) ExecuteScheduledWaterAction(g *pkg.Garden, z *pkg.Zone, ws *pkg
})
}

func (w *Worker) exerciseWeatherControl(g *pkg.Garden, z *pkg.Zone, ws *pkg.WaterSchedule) (time.Duration, error) {
func (w *Worker) exerciseWeatherControl(ws *pkg.WaterSchedule) (time.Duration, error) {
if !ws.HasWeatherControl() {
return ws.Duration.Duration, nil
}
Expand Down

0 comments on commit 02a8b1e

Please sign in to comment.