refactor: extract timeout helpers and replace conditionals in snmp/discovery.ex
- 12 identical *_with_timeout wrappers → 2 generic helpers (with_timeout/3, with_deferred_timeout/3) - Removed commented-out code (# alias Towerops.Topology, # Auto-inference disabled) - All if/case/cond replaced with pattern-matched function clauses (20+ refactors) - Long lines fixed for credo compliance - 11/11 tests pass, 0 credo issues
This commit is contained in:
parent
9d4a5f6d81
commit
5b91735b14
1 changed files with 369 additions and 451 deletions
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue