chore: simplify
This commit is contained in:
parent
70b28f2d08
commit
95c39a3a95
1 changed files with 1 additions and 2 deletions
|
|
@ -58,8 +58,7 @@ func (lp *Loadpoint) stopSession() {
|
|||
}
|
||||
|
||||
s.Finished = lp.clock.Now()
|
||||
meterStop := lp.chargeMeterTotal()
|
||||
if meterStop > 0 {
|
||||
if meterStop := lp.chargeMeterTotal(); meterStop > 0 {
|
||||
s.MeterStop = &meterStop
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue