Skip to content

Commit

Permalink
Check for error for getConfigFromEnv() call
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron.tam committed Sep 16, 2021
1 parent 21e07f2 commit 0970286
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/objstore/oci/oci.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,10 @@ func NewBucket(logger log.Logger, ociConfig []byte) (*Bucket, error) {
//In a close function it empties and deletes the bucket.
func NewTestBucket(t testing.TB) (objstore.Bucket, func(), error) {
config, err := getConfigFromEnv()
if err != nil {
return nil, nil, err
}

ociConfig, err := yaml.Marshal(config)
if err != nil {
return nil, nil, err
Expand Down

0 comments on commit 0970286

Please sign in to comment.