Skip to content

Commit 49788c7

Browse files
committed
comment brevity
1 parent 036279c commit 49788c7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/sentry/utils/display_name_filter.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,7 @@ def _has_cta(lowered: str) -> bool:
6161

6262

6363
def check_spam_display_name(name: str) -> str | None:
64-
"""Check if a user-controlled display name matches known spam patterns.
65-
66-
Returns a user-facing error string listing the matched categories
67-
if 2+ distinct signal categories fire, or None if the name is clean.
68-
"""
64+
"""Return an error string if the name matches 2+ spam categories, else None."""
6965
lowered = name.lower()
7066
matched_labels: list[str] = [label for label, check in _CATEGORIES if check(lowered)]
7167
if len(matched_labels) >= 2:

0 commit comments

Comments
 (0)