Skip to content

Commit a5ee137

Browse files
committed
Fix linting issue with ApiKey.
1 parent 196ca21 commit a5ee137

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

backend/storj/fs.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ type Options struct {
5858
Access string `config:"access"`
5959

6060
SatelliteAddress string `config:"satellite-address"`
61-
ApiKey string `config:"api-key"`
61+
APIKey string `config:"api-key"`
6262
Passphrase string `config:"passphrase"`
6363
}
6464

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

112-
if access == nil && f.opts.SatelliteAddress != "" && f.opts.ApiKey != "" && f.opts.Passphrase != "" {
113-
access, err = uplink.RequestAccessWithPassphrase(ctx, f.opts.SatelliteAddress, f.opts.ApiKey, f.opts.Passphrase)
112+
if access == nil && f.opts.SatelliteAddress != "" && f.opts.APIKey != "" && f.opts.Passphrase != "" {
113+
access, err = uplink.RequestAccessWithPassphrase(ctx, f.opts.SatelliteAddress, f.opts.APIKey, f.opts.Passphrase)
114114
if err != nil {
115115
return nil, errors.Wrap(err, "storj: access")
116116
}

0 commit comments

Comments
 (0)