Skip to content
This repository was archived by the owner on Jun 8, 2019. It is now read-only.

Commit 2487ebd

Browse files
appleboybkcsoft
authored andcommitted
replac go fmt with gofmt command.
Signed-off-by: Bo-Yi Wu <[email protected]>
1 parent c0e0813 commit 2487ebd

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ generate:
1818

1919
.PHONY: fmt
2020
fmt:
21-
go fmt $(PACKAGES)
21+
find . -name "*.go" -type f -not -path "./vendor/*" | xargs gofmt -s -w
2222

2323
.PHONY: vet
2424
vet:

gitea/hook.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ func (c *Client) DeleteOrgHook(org string, id int64) error {
115115
return err
116116
}
117117

118-
119118
// DeleteRepoHook delete one hook from a repository, with hook id
120119
func (c *Client) DeleteRepoHook(user, repo string, id int64) error {
121120
_, err := c.getResponse("DELETE", fmt.Sprintf("/repos/%s/%s/hooks/%d", user, repo, id), nil, nil)

0 commit comments

Comments
 (0)