Skip to content

Commit 7c27119

Browse files
authored
Do as kennytm says because I don't know this strange language =P
1 parent 245a01e commit 7c27119

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

homu/parse_issue_comment.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
from itertools import chain
22
import re
33

4-
def strip_at_prefix(input):
5-
if input.startswith("@"):
6-
return input[1:]
7-
return input
8-
94
class IssueCommentCommand:
105
"""
116
A command that has been parsed out of a GitHub issue comment.
@@ -20,7 +15,7 @@ def __init__(self, action):
2015
def approve(cls, approver, commit):
2116
command = cls('approve')
2217
command.commit = commit
23-
command.actor = strip_at_prefix(approver)
18+
command.actor = approver.lstrip('@')
2419
return command
2520

2621
@classmethod

0 commit comments

Comments
 (0)