Skip to content

Commit

Permalink
fixup: accept suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Eddie Maldonado <[email protected]>
  • Loading branch information
rudiejd and lemald authored Jan 22, 2025
1 parent 68aab4e commit 9b8e6ff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/state/lib/state/vehicle.ex
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ defmodule State.Vehicle do
defp has_invalid_dir(vehicle) do
not_shuttle = vehicle.route_id != nil and not String.contains?(vehicle.route_id, "Shuttle")

invalid_dir =
vehicle.direction_id == nil or vehicle.direction_id > 1 or vehicle.direction_id < 0
invalid_dir = vehicle.direction_id not in [0, 1]

not_shuttle and invalid_dir
end
Expand Down

0 comments on commit 9b8e6ff

Please sign in to comment.