Rename variable for consistency

This commit is contained in:
stefanbenten 2019-08-29 22:17:38 +02:00
parent 5bb0e84fa5
commit 6eabb248da

View file

@ -596,12 +596,12 @@ func NewStorjStorage(endpoint, apiKey, bucket, encKey string, logger *log.Logger
return nil, uplinkFailure.Wrap(err) return nil, uplinkFailure.Wrap(err)
} }
saltenckey, err := instance.project.SaltedKeyFromPassphrase(ctx, encKey) saltEncKey, err := instance.project.SaltedKeyFromPassphrase(ctx, encKey)
if err != nil { if err != nil {
return nil, uplinkFailure.Wrap(err) return nil, uplinkFailure.Wrap(err)
} }
access := uplink.NewEncryptionAccessWithDefaultKey(*saltenckey) access := uplink.NewEncryptionAccessWithDefaultKey(*saltEncKey)
instance.bucket, err = instance.project.OpenBucket(ctx, bucket, access) instance.bucket, err = instance.project.OpenBucket(ctx, bucket, access)
if err != nil { if err != nil {