Fixed not correct if condition
All checks were successful
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Successful in 23s
All checks were successful
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Successful in 23s
This commit is contained in:
@ -653,7 +653,7 @@ func (v *Vehicle) GetVehicleStatus() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if strings.HasPrefix(key, "tirePressure") && !strings.HasSuffix(key, "Psi") {
|
if strings.HasPrefix(key, "tirePressure") && strings.HasSuffix(key, "Psi") {
|
||||||
pos := strings.TrimPrefix(key, "tirePressure")
|
pos := strings.TrimPrefix(key, "tirePressure")
|
||||||
pos = strings.TrimSuffix(pos, "Psi")
|
pos = strings.TrimSuffix(pos, "Psi")
|
||||||
submatchall := re.FindAllString(pos, -1)
|
submatchall := re.FindAllString(pos, -1)
|
||||||
@ -825,7 +825,7 @@ func (v *Vehicle) GetVehicleCondition() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if strings.HasPrefix(key, "tirePressure") && !strings.HasSuffix(key, "Psi") {
|
if strings.HasPrefix(key, "tirePressure") && strings.HasSuffix(key, "Psi") {
|
||||||
pos := strings.TrimPrefix(key, "tirePressure")
|
pos := strings.TrimPrefix(key, "tirePressure")
|
||||||
pos = strings.TrimSuffix(pos, "Psi")
|
pos = strings.TrimSuffix(pos, "Psi")
|
||||||
submatchall := re.FindAllString(pos, -1)
|
submatchall := re.FindAllString(pos, -1)
|
||||||
|
Reference in New Issue
Block a user