Commit 4e473119 authored by Clement Ho's avatar Clement Ho

[skip ci] refactor processAssignees

parent 74b7d213
...@@ -27,11 +27,7 @@ class ListIssue { ...@@ -27,11 +27,7 @@ class ListIssue {
this.labels.push(new ListLabel(label)); this.labels.push(new ListLabel(label));
}); });
this.processAssignees(obj.assignees); this.assignees = obj.assignees.map(a => new ListAssignee(a));
}
processAssignees(assignees) {
this.assignees = assignees.map(a => new ListAssignee(a));
} }
addLabel (label) { addLabel (label) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment