From 2487ebd26e8ae58be425ee931bf5cdcc4c2febaa Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sat, 31 Dec 2016 14:50:46 +0800 Subject: [PATCH] replac go fmt with gofmt command. Signed-off-by: Bo-Yi Wu --- Makefile | 2 +- gitea/hook.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8d047c7..6c517ff 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ generate: .PHONY: fmt fmt: - go fmt $(PACKAGES) + find . -name "*.go" -type f -not -path "./vendor/*" | xargs gofmt -s -w .PHONY: vet vet: diff --git a/gitea/hook.go b/gitea/hook.go index d07ccbf..4e04275 100644 --- a/gitea/hook.go +++ b/gitea/hook.go @@ -115,7 +115,6 @@ func (c *Client) DeleteOrgHook(org string, id int64) error { return err } - // DeleteRepoHook delete one hook from a repository, with hook id func (c *Client) DeleteRepoHook(user, repo string, id int64) error { _, err := c.getResponse("DELETE", fmt.Sprintf("/repos/%s/%s/hooks/%d", user, repo, id), nil, nil)