replac go fmt with gofmt command.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2016-12-31 14:50:46 +08:00 committed by Kim "BKC" Carlbäcker
parent c0e081342a
commit 2487ebd26e
2 changed files with 1 additions and 2 deletions

View file

@ -18,7 +18,7 @@ generate:
.PHONY: fmt .PHONY: fmt
fmt: fmt:
go fmt $(PACKAGES) find . -name "*.go" -type f -not -path "./vendor/*" | xargs gofmt -s -w
.PHONY: vet .PHONY: vet
vet: vet:

View file

@ -115,7 +115,6 @@ func (c *Client) DeleteOrgHook(org string, id int64) error {
return err return err
} }
// DeleteRepoHook delete one hook from a repository, with hook id // DeleteRepoHook delete one hook from a repository, with hook id
func (c *Client) DeleteRepoHook(user, repo string, id int64) error { 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) _, err := c.getResponse("DELETE", fmt.Sprintf("/repos/%s/%s/hooks/%d", user, repo, id), nil, nil)