Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperCraeghs committed Dec 12, 2023
1 parent 2ff66d0 commit 6b642b6
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions src/mlx/jira_juggler.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,20 +353,6 @@ class JugglerTaskDepends(JugglerTaskProperty):
PREFIX = '!'
links = set()

@property
def value(self):
"""list: Value of the task juggler property"""
return self._value

@value.setter
def value(self, value):
"""Sets value for task juggler property (deep copy)
Args:
value (object): New value of the property
"""
self._value = list(value)

def append_value(self, value):
"""Appends value for task juggler property
Expand All @@ -382,7 +368,7 @@ def load_from_jira_issue(self, jira_issue):
Args:
jira_issue (jira.resources.Issue): The Jira issue to load from
"""
self.value = self.DEFAULT_VALUE
self.value = list(self.DEFAULT_VALUE)
if hasattr(jira_issue.fields, 'issuelinks'):
for link in jira_issue.fields.issuelinks:
if hasattr(link, 'inwardIssue') and link.type.inward in self.links:
Expand Down

0 comments on commit 6b642b6

Please sign in to comment.