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:
Tim Abbott
2017-06-15 12:32:53 -07:00
parent b6b22fbb47
commit 0904d61e96

View File

@@ -113,12 +113,7 @@ class WebhookIntegration(Integration):
self.url = url
if doc is None:
path = os.path.join(settings.DEPLOY_ROOT, 'zerver', 'webhooks')
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')
doc = self.DEFAULT_DOC_PATH.format(name=name, ext='md')
self.doc = doc