Skip to content

Commit

Permalink
corrected return type
Browse files Browse the repository at this point in the history
  • Loading branch information
hrshdhgd committed Oct 12, 2022
1 parent 2bf749c commit d54bb81
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/ontobot_change_agent/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def _extract_info_from_issue_object(issue: Issue) -> dict:
return important_info


def _make_sense_of_body(body: str) -> list:
def _make_sense_of_body(body: str) -> str:
# splitter = "\r\n"
# if "* " in body:
# bullet = "* "
Expand All @@ -107,9 +107,7 @@ def _make_sense_of_body(body: str) -> list:
# return (
# body.lstrip(bullet).replace("<", "").replace(">", "").split(splitter)
# )
return (
body.replace("<", "").replace(">", "").replace("\r\n", "")
)
return body.replace("<", "").replace(">", "").replace("\r\n", "")


def get_all_labels_from_repo(repository_name: str) -> dict:
Expand Down

0 comments on commit d54bb81

Please sign in to comment.