Skip to content

Commit 5aeb035

Browse files
Clean up comments and formatting
1 parent ae7c12e commit 5aeb035

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/django_github_app/mentions.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ def extract_mentions_from_event(
165165
if not comment:
166166
return []
167167

168-
# If no pattern specified, use github app name from settings
169168
if username_pattern is None:
170169
username_pattern = app_settings.SLUG
171170

@@ -190,7 +189,6 @@ def extract_mentions_from_event(
190189
)
191190
)
192191

193-
# link mentions
194192
for i, mention in enumerate(mentions):
195193
if i > 0:
196194
mention.previous_mention = mentions[i - 1]

src/django_github_app/routing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def __init__(self, *args) -> None:
5050
def add(
5151
self, func: AsyncCallback | SyncCallback, event_type: str, **data_detail: Any
5252
) -> None:
53-
"""Override to accept both async and sync callbacks."""
53+
# Override to accept both async and sync callbacks.
5454
super().add(cast(AsyncCallback, func), event_type, **data_detail)
5555

5656
@classproperty

0 commit comments

Comments
 (0)