Extracted SNMP configuration extraction and connection testing into separate helper functions, reducing cyclomatic complexity from 11 to ~5. - extract_snmp_config/1: Consolidates form data and params - normalize_port/1: Handles port type conversion - test_snmp_connection/1: Performs test and formats result This makes the handle_event callback simpler and each concern easier to test independently. |
||
|---|---|---|
| .. | ||
| components | ||
| controllers | ||
| live | ||
| endpoint.ex | ||
| gettext.ex | ||
| router.ex | ||
| telemetry.ex | ||
| user_auth.ex | ||