mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
integrations: Remove compatibility code for HTML format docs.
This fixes a coverage error in Travis CI caused by this code no longer being used.
This commit is contained in:
@@ -113,12 +113,7 @@ class WebhookIntegration(Integration):
|
|||||||
self.url = url
|
self.url = url
|
||||||
|
|
||||||
if doc is None:
|
if doc is None:
|
||||||
path = os.path.join(settings.DEPLOY_ROOT, 'zerver', 'webhooks')
|
doc = self.DEFAULT_DOC_PATH.format(name=name, ext='md')
|
||||||
md_doc = self.DEFAULT_DOC_PATH.format(name=name, ext='md')
|
|
||||||
if os.path.exists(os.path.join(path, md_doc)):
|
|
||||||
doc = md_doc
|
|
||||||
else:
|
|
||||||
doc = self.DEFAULT_DOC_PATH.format(name=name, ext='html')
|
|
||||||
|
|
||||||
self.doc = doc
|
self.doc = doc
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user