Skip to content

Commit

Permalink
Undo Use Array#some because the tests failed
Browse files Browse the repository at this point in the history
  • Loading branch information
richfab committed Nov 2, 2023
1 parent b4a2832 commit d271ba8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gbfs-validator/nonSchemaValidation/check_vehicle_types.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ function checkVehicleTypeConsistency({ errors, warnings, data }) {
})
vehicle_types_ids.forEach((vehicle_type_id) => {
if (
data.data.vehicle_types.some(
data.data.vehicle_types.filter(
(vehicle_type) => vehicle_type.vehicle_type_id === vehicle_type_id
)
).length > 1
) {
errors.push({
path: '/data/vehicle_types/vehicle_type_id',
Expand Down

0 comments on commit d271ba8

Please sign in to comment.