- accounts.ex: convert get_user_by_email_and_password if→with-chain with explicit User struct match and else→nil. Flatten delete_account nested if (password check + sole-owner check) into single with-chain with named else clauses, eliminating do_delete_account indirection. - organizations.ex: flatten update_member_role nested if/case into with-chain — parse_role guard → membership fetch → owner check, each with explicit else branch. Prevents variable shadowing by using current_role for the membership pattern match. - capacity.ex: extract calculate_throughput_from_stats inner if into multi-clause compute_throughput_from_pairs/1 — empty list clause returns zero_throughput(), non-empty clause handles the computation. |
||
|---|---|---|
| .. | ||
| mix/tasks | ||
| snmpkit | ||
| towerops | ||
| towerops_web | ||
| snmp_lib.ex | ||
| snmp_mgr.ex | ||
| snmpkit.ex | ||
| towerops.ex | ||
| towerops_native.ex | ||
| towerops_web.ex | ||