More changes
All checks were successful
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Successful in 23s

This commit is contained in:
2025-06-03 19:14:50 -04:00
parent ac8efafe29
commit 68eb2a5911
3 changed files with 17 additions and 5 deletions

View File

@ -626,8 +626,8 @@ func (v *Vehicle) GetVehicleStatus() {
val := reflect.ValueOf(vs)
typeOfS := val.Type()
badValues := []any{"NOT_EQUIPPED", "UNKNOWN", "None", "16383", "65535", "-64", "", 0, float64(0), nil}
for i := 0; i < val.NumField(); i++ {
// for i := 0; i < val.NumField(); i++ {
for i := range val.NumField() {
if slices.Contains(badValues, val.Field(i).Interface()) {
continue
} else {
@ -675,8 +675,8 @@ func (v *Vehicle) GetVehicleCondition() {
val := reflect.ValueOf(vc)
typeOfS := val.Type()
badValues := []any{"NOT_EQUIPPED", "UNKNOWN", "None", "16383", "65535", "-64", "", 0, float64(0), nil}
for i := 0; i < val.NumField(); i++ {
// for i := 0; i < val.NumField(); i++ {
for i := range val.NumField() {
if slices.Contains(badValues, val.Field(i).Interface()) {
continue
} else {