Skip to content

Commit

Permalink
make fumpt and fix target for it
Browse files Browse the repository at this point in the history
  • Loading branch information
chmouel committed Dec 21, 2023
1 parent 9a772f0 commit 596d554
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ fmt:
@go fmt `go list ./... | grep -v /vendor/`

fumpt:
@gofumpt -w *.go
@gofumpt -e -w -extra ./

6 changes: 4 additions & 2 deletions gosmee/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ type GHOp interface {
Starting()
}

var _ GHOp = (*RepoOP)(nil)
var _ GHOp = (*OrgOP)(nil)
var (
_ GHOp = (*RepoOP)(nil)
_ GHOp = (*OrgOP)(nil)
)

type RepoOP struct {
client *github.Client
Expand Down
1 change: 1 addition & 0 deletions tint/buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ func (b *buffer) Free() {
bufPool.Put(b)
}
}

func (b *buffer) Write(bytes []byte) (int, error) {
*b = append(*b, bytes...)
return len(bytes), nil
Expand Down

0 comments on commit 596d554

Please sign in to comment.