aprs.me/lib/aprsme_web/plugs
Graham McIntire 4366fa36da
Refactor conditionals to use multi-clause pattern matching
Replace case/cond/if blocks with multi-clause function dispatch
and pattern matching in function heads across 9 modules:
- WeatherUnits: case to multi-clause unit_system/1, unit_labels via do_unit_labels/1
- PacketUtils: if to pattern match on %{"id" => id}, multi-clause threshold/callsign
- SetLocale: case to multi-clause extract_locale/1
- IPGeolocation: if/cond to pattern match on conn, binary prefix matching for private_ip?
- DeviceIdentification: cond to extracted pattern_matches?/2
- MobileChannel: cond to multi-clause do_callsign_match/2
- PacketProcessor: cond to dispatch_visibility/6 on {in_bounds, has_marker} tuple
- PacketManager: destructure packet_state in heads, multi-clause maybe_cleanup/3
- AprsSymbol: case/if to multi-clause get_table_id/1, normalize_symbol_code/1
2026-02-10 17:15:49 -06:00
..
api_csrf.ex cleanup and remove redis 2025-10-22 16:19:17 -05:00
health_check.ex Complete nested module alias fixes and update Sobelow skips 2026-02-09 11:26:47 -06:00
ip_geolocation.ex Refactor conditionals to use multi-clause pattern matching 2026-02-10 17:15:49 -06:00
log_filter.ex Add info logging for mobile websocket events and filter healthcheck logs 2025-10-25 17:04:59 -05:00
rate_limiter.ex improve dialyzer 2025-10-13 10:02:15 -05:00
set_locale.ex Refactor conditionals to use multi-clause pattern matching 2026-02-10 17:15:49 -06:00