Skip to content

Commit

Permalink
delete comments
Browse files Browse the repository at this point in the history
  • Loading branch information
trillville authored Feb 27, 2025
1 parent 426bde0 commit 235b8c9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/sentry/integrations/pagerduty/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class PagerDutyClient(ApiClient):
base_url = "https://events.pagerduty.com/v2/enqueue"

def __init__(self, integration_key: str, integration_id: int | None) -> None:
# Clean the integration key by stripping whitespace and quotes
self.integration_key = integration_key.strip().strip("'").strip('"')
super().__init__(integration_id=integration_id)

Expand All @@ -41,7 +40,6 @@ def send_trigger(
notification_uuid: str | None = None,
severity: PagerdutySeverity | None = None,
):
# Ensure routing_key is clean when sending to PagerDuty API
if isinstance(data, dict) and "routing_key" in data:
data["routing_key"] = data["routing_key"].strip().strip("'").strip('"')

Expand Down

0 comments on commit 235b8c9

Please sign in to comment.