integrations: Remove hasattr check for stream_name on Integrations.

`stream_name` is always set on `Integration`. If it is not explicitly
specified, it is set to the name of the integration.
This commit is contained in:
Puneeth Chaganti
2020-04-24 00:48:00 +05:30
committed by Tim Abbott
parent 4d8c988ef2
commit f280b64caa

View File

@@ -187,8 +187,7 @@ def integration_doc(request: HttpRequest, integration_name: str=REQ()) -> HttpRe
context['integration_name'] = integration.name
context['integration_display_name'] = integration.display_name
if hasattr(integration, 'stream_name'):
context['recommended_stream_name'] = integration.stream_name
context['recommended_stream_name'] = integration.stream_name
if isinstance(integration, WebhookIntegration):
context['integration_url'] = integration.url[3:]
if isinstance(integration, HubotIntegration):