Skip to content

Commit

Permalink
Remove stale change request checking code
Browse files Browse the repository at this point in the history
  • Loading branch information
zachaysan committed Aug 20, 2024
1 parent b52b2f7 commit bba8d9b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions api/segments/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,6 @@ def id_exists_in_rules_data(rules_data: typing.List[dict]) -> bool:

@hook(BEFORE_CREATE, when="version_of", is_now=None)
def set_default_version_to_one_if_new_segment(self):
# Change request segments default to None.
if hasattr(self, "change_request_id"):
if self.change_request_id:
return

if self.version is None:
self.version = 1

Expand Down

0 comments on commit bba8d9b

Please sign in to comment.