Skip to content

Commit

Permalink
only run group filter if update type is binary
Browse files Browse the repository at this point in the history
  • Loading branch information
bfauble committed Apr 25, 2024
1 parent 0a57eb1 commit 5f789ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/concentrate/group_filter/uncertainty_value.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ defmodule Concentrate.GroupFilter.UncertaintyValue do
alias Concentrate.{StopTimeUpdate, TripDescriptor}

@impl Concentrate.GroupFilter
def filter({%TripDescriptor{update_type: update_type} = td, vps, stus}) do
def filter({%TripDescriptor{update_type: update_type} = td, vps, stus})
when is_binary(update_type) do
stus =
update_type
|> calculate_uncertainty()
Expand Down

0 comments on commit 5f789ea

Please sign in to comment.