Skip to content

Commit 1994dc2

Browse files
committed
chore: minor
1 parent 0070476 commit 1994dc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/site_optimizer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ func applySmartCostLimit(lp loadpoint.API, demand []float32, grid api.Rates, min
536536
demand = make([]float32, minLen)
537537
}
538538

539-
for i := 0; i < maxLen; i++ {
539+
for i := range maxLen {
540540
if grid[i].Value <= *costLimit {
541541
demand[i] = float32(maxPower / slotsPerHour)
542542
}

0 commit comments

Comments
 (0)