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)