-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: prevent crash on empty list (#2113)
Refactors `select_direction_and_route/1` to use pattern mattern more heavily and handle cases when the passed argument is an empty list. This handles the case when the direction and route for the informed entities of an alert are empty or otherwise filtered down to an empty list (e.g. only contain JFK). Additionally this is perhaps slightly more idiomatic Elixir code.
- Loading branch information
1 parent
8d8efc1
commit 24fb7a6
Showing
1 changed file
with
8 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters