Skip to content

Commit

Permalink
Fix linting issue with ApiKey.
Browse files Browse the repository at this point in the history
  • Loading branch information
calebcase committed Apr 15, 2020
1 parent 196ca21 commit a5ee137
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/storj/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ type Options struct {
Access string `config:"access"`

SatelliteAddress string `config:"satellite-address"`
ApiKey string `config:"api-key"`
APIKey string `config:"api-key"`
Passphrase string `config:"passphrase"`
}

Expand Down Expand Up @@ -109,8 +109,8 @@ func NewFs(name, root string, m configmap.Mapper) (_ fs.Fs, err error) {
}
}

if access == nil && f.opts.SatelliteAddress != "" && f.opts.ApiKey != "" && f.opts.Passphrase != "" {
access, err = uplink.RequestAccessWithPassphrase(ctx, f.opts.SatelliteAddress, f.opts.ApiKey, f.opts.Passphrase)
if access == nil && f.opts.SatelliteAddress != "" && f.opts.APIKey != "" && f.opts.Passphrase != "" {
access, err = uplink.RequestAccessWithPassphrase(ctx, f.opts.SatelliteAddress, f.opts.APIKey, f.opts.Passphrase)
if err != nil {
return nil, errors.Wrap(err, "storj: access")
}
Expand Down

0 comments on commit a5ee137

Please sign in to comment.