From 0dedb79942e0b5edac171a801be9e1f36843a27d Mon Sep 17 00:00:00 2001 From: Sajith Sasidharan Date: Mon, 9 Sep 2024 21:25:47 -0500 Subject: [PATCH] Remove dead code --- src/sdx_datamodel/models/connection_request.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sdx_datamodel/models/connection_request.py b/src/sdx_datamodel/models/connection_request.py index 1ab1705..4522f50 100644 --- a/src/sdx_datamodel/models/connection_request.py +++ b/src/sdx_datamodel/models/connection_request.py @@ -48,11 +48,11 @@ def validate_vlan(cls, value: str) -> str: # "any", "all", and "untagged" also are valid. if value not in ("any", "all", "untagged"): raise ValueError(f"VLAN {value} is not valid") - else: - return value - - raise ValueError(f"vlan {value} is invalid") + # By now we should have have exhausted all possible checks; + # just return the value. + return value + @classmethod def is_integer(cls, value) -> bool: try: