Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
sajith committed Sep 10, 2024
1 parent 2909897 commit 0dedb79
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sdx_datamodel/models/connection_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0dedb79

Please sign in to comment.