From aa1658f0c795319bf0f1c2d855c9f58669c0629f Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Thu, 23 Apr 2015 14:02:05 -0400 Subject: [PATCH] endpoints.trigger: more logical comment blocks --- endpoints/trigger.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/endpoints/trigger.py b/endpoints/trigger.py index c81fdd96b..f6283d849 100644 --- a/endpoints/trigger.py +++ b/endpoints/trigger.py @@ -203,13 +203,11 @@ class GithubBuildTrigger(BuildTrigger): msg = 'Unable to add deploy key to repository: %s' % new_build_source raise TriggerActivationException(msg) - # Create a webhook config. + # Add the webhook to the GitHub repository. webhook_config = { 'url': standard_webhook_url, 'content_type': 'json', } - - # Add the webhook to the GitHub repository. try: hook = gh_repo.create_hook('web', webhook_config) config['hook_id'] = hook.id