From 28f26e61dd6e04aa7ce1db0392128ad1b3f46eac Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Mon, 8 Aug 2016 15:54:36 +0100 Subject: [PATCH] Formatting --- src/github.com/matrix-org/go-neb/services/github/github.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/github.com/matrix-org/go-neb/services/github/github.go b/src/github.com/matrix-org/go-neb/services/github/github.go index 86b4d18..22cdbe6 100644 --- a/src/github.com/matrix-org/go-neb/services/github/github.go +++ b/src/github.com/matrix-org/go-neb/services/github/github.go @@ -239,7 +239,6 @@ func modifyWebhooks(s *githubService, cli *github.Client, removeHooks bool) { }) if removeHooks { removeHook(logger, cli, owner, repo, webhookEndpointURL) - } else { // make a hook for all GH events since we'll filter it when we receive webhook requests name := "web" // https://developer.github.com/v3/repos/hooks/#create-a-hook @@ -366,7 +365,6 @@ func removeHook(logger *log.Entry, cli *github.Client, owner, repo, webhookEndpo _, err = cli.Repositories.DeleteHook(owner, repo, *hook.ID) if err != nil { logger.WithError(err).Print("Failed to delete hook") - // continue as others may succeed } }