Refactor #34566
Rewrite validate_ip to use a case statement
Description
A case statement makes the current code easier to understand and slightly more efficient.
Associated revisions
History
#1
Updated by The Foreman Bot about 1 year ago
- Assignee set to Ewoud Kohl van Wijngaarden
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/smart-proxy/pull/824 added
#2
Updated by The Foreman Bot about 1 year ago
- Fixed in Releases 3.3.0 added
#3
Updated by Ewoud Kohl van Wijngaarden about 1 year ago
- Status changed from Ready For Testing to Closed
Applied in changeset 2529bfac8fd4444bc98b205ab0bdedebf42bc447.
Fixes #34566 - Refactor validate_ip to use a case statement
This has the same result, but is slightly more easier to follow and
potentially slightly more efficient.