Reduces function nesting depth to comply with Credo requirements (max depth 2): - device_cache.ex: Extract pattern matching logic into separate helpers (pattern_matches?/2, matches_wildcard_pattern?/2) - packets.ex: Extract data sanitization logic into separate helpers (sanitize_data_extended_attr/1, deep_sanitize_map/1) Note: This refactoring improved robustness - invalid data_extended values now return validation errors instead of throwing exceptions - spatial_pubsub.ex: Extract grid cell and client filtering logic (remove_client_from_grid_cell/3, update_grid_cell_after_removal/3, filter_clients_by_bounds/3, client_contains_point?/3) - Update test expectation in packets_test.exs to match improved error handling behavior (validation_error vs storage_exception) Fixes 3 Credo nesting depth issues (8 remaining) |
||
|---|---|---|
| .. | ||
| aprsme | ||
| aprsme_web | ||
| assets/js | ||
| integration | ||
| support | ||
| types | ||
| test_helper.exs | ||