gofmt modified files

This commit is contained in:
Joachim Hill-Grannec 2017-02-01 13:49:26 -08:00
parent ee453e1a61
commit a9e83aa5ce
3 changed files with 22 additions and 23 deletions

View file

@ -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
}