1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-07-05 00:59:04 +02:00

fix: brew tmpl (#1057)

* fix: brew tmpl

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: compile

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: compile

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
Carlos Alexandro Becker
2019-06-26 14:12:33 -03:00
committed by GitHub
parent c9546ec81b
commit ef6e13a61b
12 changed files with 47 additions and 48 deletions

View File

@ -1,7 +1,6 @@
package client
import (
"bytes"
"crypto/tls"
"net/http"
"net/url"
@ -56,7 +55,7 @@ func (c *githubClient) CreateFile(
ctx *context.Context,
commitAuthor config.CommitAuthor,
repo config.Repo,
content bytes.Buffer,
content []byte,
path,
message string,
) error {
@ -65,7 +64,7 @@ func (c *githubClient) CreateFile(
Name: github.String(commitAuthor.Name),
Email: github.String(commitAuthor.Email),
},
Content: content.Bytes(),
Content: content,
Message: github.String(message),
}