File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/service Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -125,9 +125,7 @@ class StorageS3Service {
125
125
const S3ListPluginOptions ();
126
126
127
127
final resolvedPath = await _pathResolver.resolvePath (path: path);
128
- final s3ClientInfo = options.bucket == null
129
- ? getS3ClientInfo ()
130
- : getS3ClientInfo (storageBucket: options.bucket);
128
+ final s3ClientInfo = getS3ClientInfo (storageBucket: options.bucket);
131
129
132
130
if (! s3PluginOptions.listAll) {
133
131
final request = s3.ListObjectsV2Request .build ((builder) {
@@ -159,10 +157,8 @@ class StorageS3Service {
159
157
try {
160
158
final request = s3.ListObjectsV2Request .build ((builder) {
161
159
builder
162
- ..bucket = options.bucket == null
163
- ? _storageOutputs.bucketName
164
- // ignore: invalid_use_of_internal_member
165
- : options.bucket! .resolveBucketInfo (_storageOutputs).bucketName
160
+
161
+ ..bucket = s3ClientInfo.bucketName
166
162
..prefix = resolvedPath
167
163
..delimiter = s3PluginOptions.excludeSubPaths
168
164
? s3PluginOptions.delimiter
You can’t perform that action at this time.
0 commit comments