More changes
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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user