chore: simplify
This commit is contained in:
parent
9e3111dedf
commit
e6dbfd8826
1 changed files with 3 additions and 5 deletions
|
|
@ -836,11 +836,9 @@ func (lp *LoadPoint) wakeUpVehicle() {
|
|||
}
|
||||
|
||||
// vehicle
|
||||
if lp.vehicle != nil {
|
||||
if vs, ok := lp.vehicle.(api.Resurrector); ok {
|
||||
if err := vs.WakeUp(); err != nil {
|
||||
lp.log.ERROR.Printf("wake-up vehicle: %v", err)
|
||||
}
|
||||
if vs, ok := lp.vehicle.(api.Resurrector); ok {
|
||||
if err := vs.WakeUp(); err != nil {
|
||||
lp.log.ERROR.Printf("wake-up vehicle: %v", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue