Skip to content

Commit

Permalink
Deepsource lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdee committed Apr 27, 2024
1 parent e1b34d7 commit 434f451
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions core/stores.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2020, 2022 Attestant Limited.
// Copyright © 2020 - 2024 Attestant Limited.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
Expand Down Expand Up @@ -137,11 +137,13 @@ func initS3Store(ctx context.Context,
opts = append(opts, s3.WithPassphrase(passphrase))
}
if storeDefinition.S3 != nil {
opts = append(opts, s3.WithRegion(storeDefinition.S3.Region))
opts = append(opts, s3.WithID([]byte(storeDefinition.S3.ID)))
opts = append(opts, s3.WithBucket(storeDefinition.S3.Bucket))
opts = append(opts, s3.WithPath(storeDefinition.S3.Path))
opts = append(opts, s3.WithEndpoint(storeDefinition.S3.Endpoint))
opts = append(opts,
s3.WithRegion(storeDefinition.S3.Region),
s3.WithID([]byte(storeDefinition.S3.ID)),
s3.WithBucket(storeDefinition.S3.Bucket),
s3.WithPath(storeDefinition.S3.Path),
s3.WithEndpoint(storeDefinition.S3.Endpoint),
)
}
if storeDefinition.S3 != nil && storeDefinition.S3.Credentials != nil {
id, err := majordomo.Fetch(ctx, storeDefinition.S3.Credentials.ID)
Expand Down

0 comments on commit 434f451

Please sign in to comment.