mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 20:01:02 +00:00
gofmt modified files
This commit is contained in:
parent
ee453e1a61
commit
a9e83aa5ce
3 changed files with 22 additions and 23 deletions
|
@ -67,9 +67,9 @@ func New(opts Opts) (remote.Remote, error) {
|
|||
return nil, fmt.Errorf("must have CONSUMER_RSA_KEY set to the path of a oauth1 consumer key file or CONSUMER_RSA_KEY_STRING set to the value of a oauth1 consumer key")
|
||||
}
|
||||
|
||||
var keyFileBytes []byte;
|
||||
var keyFileBytes []byte
|
||||
if opts.ConsumerRSA != "" {
|
||||
var err error;
|
||||
var err error
|
||||
keyFileBytes, err = ioutil.ReadFile(opts.ConsumerRSA)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
@ -84,7 +84,6 @@ func New(opts Opts) (remote.Remote, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
|
||||
config.Consumer = CreateConsumer(opts.URL, opts.ConsumerKey, PrivateKey)
|
||||
return config, nil
|
||||
}
|
||||
|
@ -166,7 +165,7 @@ func (c *Config) File(u *model.User, r *model.Repo, b *model.Build, f string) ([
|
|||
}
|
||||
|
||||
// Status is not supported by the bitbucketserver driver.
|
||||
func (c *Config) Status(u *model.User,r *model.Repo,b *model.Build,link string) error {
|
||||
func (c *Config) Status(u *model.User, r *model.Repo, b *model.Build, link string) error {
|
||||
status := internal.BuildStatus{
|
||||
State: convertStatus(b.Status),
|
||||
Desc: convertDesc(b.Status),
|
||||
|
|
Loading…
Reference in a new issue