Project

General

Profile

Refactor #34566

Rewrite validate_ip to use a case statement

Added by Ewoud Kohl van Wijngaarden 4 months ago. Updated 4 months ago.

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

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 4 months 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 4 months 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 4 months ago

  • Fixed in Releases 3.3.0 added

#3 Updated by Ewoud Kohl van Wijngaarden 4 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF