Project

General

Profile

Refactor #34566

Rewrite validate_ip to use a case statement

Added by Ewoud Kohl van Wijngaarden about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Category:
Core
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

A case statement makes the current code easier to understand and slightly more efficient.

Associated revisions

Revision 2529bfac (diff)
Added by Ewoud Kohl van Wijngaarden about 1 year ago

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.

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

Also available in: Atom PDF