Skip to content

Commit

Permalink
remove character breaking code
Browse files Browse the repository at this point in the history
  • Loading branch information
joao-zanutto authored Mar 28, 2024
1 parent de65051 commit 66c26c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/storages/builder/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func GetStorage(ctx context.Context, stCfg *domains.StorageConfig, logCgf *domai
envCfg := os.Getenv("STORAGE_TYPE")
if stCfg.Directory != nil || envCfg == "directory" {
return directory.NewStorage(stCfg.Directory)
} else if (stCfg.S3 != nil || envCfg == "s3" {
} else if stCfg.S3 != nil || envCfg == "s3" {
return s3.NewStorage(ctx, stCfg.S3, logCgf.Level)
}
return nil, errors.New("no one storage was provided")
Expand Down

0 comments on commit 66c26c8

Please sign in to comment.