mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-23 02:11:01 +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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue