diff --git a/Makefile b/Makefile index 7ebcba3..5fa1801 100644 --- a/Makefile +++ b/Makefile @@ -54,5 +54,5 @@ fmt: @go fmt `go list ./... | grep -v /vendor/` fumpt: - @gofumpt -w *.go + @gofumpt -e -w -extra ./ diff --git a/gosmee/interface.go b/gosmee/interface.go index 7ee8357..410e7d6 100644 --- a/gosmee/interface.go +++ b/gosmee/interface.go @@ -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 diff --git a/tint/buffer.go b/tint/buffer.go index 4d7321a..178aea7 100644 --- a/tint/buffer.go +++ b/tint/buffer.go @@ -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